Search found 73 matches

by erwann
Fri Mar 16, 2018 1:48 am
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5840

expl3 for dummies Topic is solved

I would need, if possible, some clarification as to what the intended purposes of local public, local internal, global public, and public function are. \l_module_name_tl % local public tokenlist \l__module_name_tl % local internal token list \g_module_name_tl % global public tokenlist \g__module_nam...
by erwann
Fri Mar 16, 2018 1:41 am
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5840

expl3 for dummies Topic is solved

Funny that the last response is attributed to someone other than myself.
Screen Shot 2018-03-15 at 7.37.08 PM.png
Screen Shot 2018-03-15 at 7.37.08 PM.png (24.56 KiB) Viewed 2878 times
by erwann
Mon Mar 05, 2018 2:47 am
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5840

expl3 for dummies Topic is solved

Two undescores for internal, one for public TL's. ExplSyntaxOn/Off inside 'document' environment seems odd, or I am missing something?
by erwann
Thu Mar 01, 2018 10:36 pm
Forum: General
Topic: expl3 for dummies - internal function arguments Topic is solved
Replies: 1
Views: 1521

expl3 for dummies - internal function arguments Topic is solved

How would I expl3-ify the following code? Can I specify an internal function like 'cs_new:Npn my_foo #1|#2* ....'? I tried, it doesn't seem like it. \documentclass{minimal} \usepackage{xparse} \ExplSyntaxOn \def\@foo#1|#2*{ (#1)(#2) } \NewDocumentCommand \foo {u{|}u{*}} { \@foo#1|#2*...
by erwann
Thu Mar 01, 2018 9:37 pm
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5840

expl3 for dummies Topic is solved

Thank you for all the feedback. These guideline conforming macro names are long, is there not such a thing similar to namespaces?
by erwann
Thu Mar 01, 2018 3:26 am
Forum: General
Topic: expl3: arguments wrapped in brackets Topic is solved
Replies: 1
Views: 1390

expl3: arguments wrapped in brackets Topic is solved

Hi, is there a way to modify the code below such that \foo c returns 'EMPTY' rather than (c)? PS: When internal and external macros share similar names (here, foo), what conventions are recommended? (In TeX, @ for the internal...) \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \cs_new:Nn ...
by erwann
Thu Mar 01, 2018 3:12 am
Forum: General
Topic: expl3 meta macro Topic is solved
Replies: 1
Views: 1433

expl3 meta macro Topic is solved

I'd like to create a macro for creating external macros that conform to a template. Cld someone pls make a suggestion? Perhaps '\exp_args:Nc' somewhere? \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \cs_new:Npn \impl #1 { (#1) } \cs_new:Npn \metamacro #1 { \NewDocumentCommand {\c...
by erwann
Thu Mar 01, 2018 3:01 am
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5840

expl3 for dummies Topic is solved

Would it be possible to have an example showing how '\use:n' would come in handy? (page 16 of interface3.pdf)
by erwann
Thu Mar 01, 2018 2:47 am
Forum: General
Topic: DeclareOptionX Topic is solved
Replies: 2
Views: 2083

DeclareOptionX Topic is solved

No luck with Skeleton's template. But by rearranging things, I got DeclareOptionX to work: % \section{Implementation} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{foo}[2018/02/12 v1.0] \RequirePackage{xkeyval} \DeclareOptionX{option}[value]{---code---} \ProcessOptionsX % \end{macroc...

Go to advanced search