Search found 75 matches
- Sun May 06, 2018 4:39 am
- Forum: Fonts & Character Sets
- Topic: expl3: Nx expansion won't take math typesetting
- Replies: 1
- Views: 4055
expl3: Nx expansion won't take math typesetting
\exp_not:N does the job.
- Sun May 06, 2018 3:03 am
- Forum: General
- Topic: l3doc for dummies
- Replies: 2
- Views: 5246
l3doc for dummies
Question # 1 : generating the doc and sty files in the directory where they belong.
$ find $PWD -type d -name foo
/home/er/Documents/dev/LaTeX/texmf-dist/tex/latex/foo
/home/er/Documents/dev/LaTeX/texmf-dist/source/foo
/home/er/Documents/dev/LaTeX/texmf-dist/doc/latex/foo
I tried to put either of ...
$ find $PWD -type d -name foo
/home/er/Documents/dev/LaTeX/texmf-dist/tex/latex/foo
/home/er/Documents/dev/LaTeX/texmf-dist/source/foo
/home/er/Documents/dev/LaTeX/texmf-dist/doc/latex/foo
I tried to put either of ...
- Sun May 06, 2018 2:13 am
- Forum: General
- Topic: expl3: don't understand behavior of tl_if_novalue:nTF
- Replies: 1
- Views: 5121
expl3: don't understand behavior of tl_if_novalue:nTF
Before opening a ticket bug I'd like to make sure it is one indeed.
Code: Select all
\documentclass{minimal}
\usepackage{expl3}
\ExplSyntaxOn
\begin{document}
\tl_if_novalue:nTF{\c_novalue_tl}{PASS}{FAIL} % prints FAIL
\ExplSyntaxOff
\end{document}
- Sun May 06, 2018 1:54 am
- Forum: Fonts & Character Sets
- Topic: expl3: Nx expansion won't take math typesetting
- Replies: 1
- Views: 4055
expl3: Nx expansion won't take math typesetting
The code below says it all.
\documentclass{minimal}
\usepackage{expl3}
\usepackage{amssymb}
\ExplSyntaxOn
\begin{document}
\tl_set:Nn \bar{A}
\tl_set:Nf \baz{\ensuremath{\mathcal{\bar}}}
%\tl_set:Nx \baz{\ensuremath{\mathcal{\bar}}} % :Nx generates error
\tl_set:Nn \bar{B}
\baz % want \mathcal ...
\documentclass{minimal}
\usepackage{expl3}
\usepackage{amssymb}
\ExplSyntaxOn
\begin{document}
\tl_set:Nn \bar{A}
\tl_set:Nf \baz{\ensuremath{\mathcal{\bar}}}
%\tl_set:Nx \baz{\ensuremath{\mathcal{\bar}}} % :Nx generates error
\tl_set:Nn \bar{B}
\baz % want \mathcal ...
- Sun May 06, 2018 1:36 am
- Forum: Fonts & Character Sets
- Topic: expl3: changing the catcode such that _ is understood as subscript
- Replies: 2
- Views: 5502
expl3: changing the catcode such that _ is understood as subscript
Too obvious for me to see it. Thanks!cgnieder wrote:Why don't you just use LaTeX's\sb
or expl3's\c_math_subscript_token
?
- Tue May 01, 2018 11:37 pm
- Forum: Fonts & Character Sets
- Topic: expl3: changing the catcode such that _ is understood as subscript
- Replies: 2
- Views: 5502
expl3: changing the catcode such that _ is understood as subscript
The example that follows says it all.
\documentclass{minimal}
\usepackage{expl3}
\usepackage{xparse}
\usepackage{amssymb}
\ExplSyntaxOn
\tl_set_rescan:Nnn
\tl_matrix_elem
{\char_set_catcode_math_subscriptn \_} %Wrong guess, apparently
{\ensuremath{A_{ij}}}
\NewDocumentCommand\matrixelem ...
\documentclass{minimal}
\usepackage{expl3}
\usepackage{xparse}
\usepackage{amssymb}
\ExplSyntaxOn
\tl_set_rescan:Nnn
\tl_matrix_elem
{\char_set_catcode_math_subscriptn \_} %Wrong guess, apparently
{\ensuremath{A_{ij}}}
\NewDocumentCommand\matrixelem ...
- Wed Apr 25, 2018 10:51 pm
- Forum: General
- Topic: Specifying arguments with xparse
- Replies: 12
- Views: 16738
Specifying arguments with xparse
It's odd the last piece of code I pasted (E arguments) no longer works on Linux.
! Undefined control sequence.
l.19 \foo
_{one}^{two}
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./argE.tex ...
! Undefined control sequence.
l.19 \foo
_{one}^{two}
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./argE.tex ...
- Mon Mar 19, 2018 11:46 pm
- Forum: General
- Topic: expl3 for dummies
- Replies: 13
- Views: 18385
expl3 for dummies
OK, thanks.
Maybe internal/public should be renamed private/public or internal/external or implementation/interface?
Maybe internal/public should be renamed private/public or internal/external or implementation/interface?
- Mon Mar 19, 2018 9:24 pm
- Forum: General
- Topic: Specifying arguments with xparse
- Replies: 12
- Views: 16738
Specifying arguments with xparse
I would have thought the 'chars' in e{chars} or E{chars} would have been specified as '_^' rather than '^_' given the example that follows. I get it now... xparse.pdf: "returned data is a token list comprising one braced entry per key, ordered as for the key list in the argument specification. "
- Sat Mar 17, 2018 6:30 pm
- Forum: General
- Topic: Automating sty and doc generation
- Replies: 2
- Views: 3157
Automating sty and doc generation
Partial answers:
If I need to describe
\themacro\oarg{X}\marg{Y}
I would say "option \meta{X} is... and argument \meta{Y} is ..." (see ltxdoc.pdf).
However, if the option is of the form key=val, using \meta won't look right. I don't know how to typeset these for sure (if someone would like to ...
If I need to describe
\themacro\oarg{X}\marg{Y}
I would say "option \meta{X} is... and argument \meta{Y} is ..." (see ltxdoc.pdf).
However, if the option is of the form key=val, using \meta won't look right. I don't know how to typeset these for sure (if someone would like to ...