Search found 2 matches

by Vaite
Mon Oct 16, 2023 11:43 pm
Forum: Math & Science
Topic: Passing options to commands
Replies: 0
Views: 16283

Passing options to commands

Have two commands that take an argument. Would like to enhance the capability to take an option to apply any of the various ceiling sizes (`\bigl`, `Bigl`, `\biggl`, `\Biggl`).

\documentclass[a4paper,12pt]{article}
\usepackage{xcolor}

\ExplSyntaxOn

\NewDocumentCommand \ceil {m}
{ \lceil #1 ...
by Vaite
Thu Oct 12, 2023 12:23 am
Forum: Document Classes
Topic: Passing rgb colour syntax
Replies: 1
Views: 9988

Passing rgb colour syntax

I want to pass a colour scheme using the syntax

[red]
[rgb][0.98,41.0,0.08]
[RGB][249,104,21]

Two optional arguments are used to pass the color specifications to this. But such implementation results in

Package xcolor Error: Undefined color `RGB'.

Here are the details

\documentclass ...