Search found 73 matches

by erwann
Thu Mar 01, 2018 2:41 am
Forum: General
Topic: Specifying arguments with xparse Topic is solved
Replies: 12
Views: 4434

Specifying arguments with xparse Topic is solved

Upgrading to texlive 2017 solved the problem.
Screen Shot 2018-02-28 at 7.40.12 PM.png
Screen Shot 2018-02-28 at 7.40.12 PM.png (21.05 KiB) Viewed 883 times
by erwann
Sun Feb 25, 2018 1:33 am
Forum: General
Topic: Specifying arguments with xparse Topic is solved
Replies: 12
Views: 4434

Specifying arguments with xparse Topic is solved

Code copy pasted frm example posted, log comes from TeXShop>file>Show log. Will try again with texlive 2017 upgrade. For now, This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2018.2.5) 24 FEB 2018 18:25 entering extended mode restricted \write...
by erwann
Sun Feb 25, 2018 12:04 am
Forum: General
Topic: Specifying arguments with xparse Topic is solved
Replies: 12
Views: 4434

Specifying arguments with xparse Topic is solved

Will do.
by erwann
Sat Feb 24, 2018 10:17 pm
Forum: General
Topic: expl3 for dummies Topic is solved
Replies: 13
Views: 5739

expl3 for dummies Topic is solved

I would I rewrite this code inside a package (*.dtx) using expl3?

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \def\the@cartoon
  2. {
  3. Betty Boop
  4. }
by erwann
Sat Feb 24, 2018 1:11 am
Forum: General
Topic: DeclareOptionX Topic is solved
Replies: 2
Views: 2047

DeclareOptionX Topic is solved

How would I modify skeleton.dtx to pass an option with a default value?

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. % \section{Implementation}
  2. %
  3. % \begin{macrocode}
  4. \DeclareOptionX{cartoon}[Betty Boop]{
  5. \def\the@cartoon
  6. {
  7. #1
  8. }
  9. }
  10. % \end{macrocode}


Where would I put

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \RequirePackage{xkeyval}


?
by erwann
Sat Feb 24, 2018 12:21 am
Forum: General
Topic: Specifying arguments with xparse Topic is solved
Replies: 12
Views: 4434

Specifying arguments with xparse Topic is solved

Thank you for these explanations. I would have thought the 'chars' in e{chars} or E{chars} would have been specified as '_^' rather than '^_' given the example that follows. Either way, it fails to compile.

PS: someone knows how to copy paste from the console in TeXShop? (I can't select text within)
by erwann
Wed Feb 14, 2018 12:55 am
Forum: General
Topic: Specifying arguments with xparse Topic is solved
Replies: 12
Views: 4434

Specifying arguments with xparse Topic is solved

I don't understand how to write a command with a v and e arguments: v Reads an argument “verbatim”, between the following character and its next oc- currence, in a way similar to the argument of the LATEX 2ε command \verb. Thus a v-type argument is read between two matching tokens, which cannot be a...
by erwann
Sun Feb 11, 2018 7:53 pm
Forum: General
Topic: Internal vs external macros Topic is solved
Replies: 3
Views: 3522

Internal vs external macros Topic is solved

Than u. My bad, I shld have specified within a *.dtx. Solved: I forgot to run *.ins.
by erwann
Fri Feb 09, 2018 6:47 pm
Forum: General
Topic: Internal vs external macros Topic is solved
Replies: 3
Views: 3522

Internal vs external macros Topic is solved

Novice question on programming.

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \newcommand{\foo}{\ohmy@foo}


If I run this, I get undefined control sequence \foo->ohmy@foo. External/Internal macros live in totally separate worlds? Ins't there a wormhole? I another words, why am I missing about about this aspect of LaTeX programming?

Go to advanced search