New answers tagged

2

Christian has shown what you could do instead but to explain the error @ is not a letter in the main document so \let\@var\@empty does \let\@=v then typesets ar\@empty producing the paragraph text arvempty (which you don't see as later errors prevent a pdf being made. Then \newcommand{\append}[1]{ \xdef\@var{\@var #1} } defines \append to typeset ...


3

You're missing \makeatletter...\makeatother pairs -- those are necessary due to \@ as macro (starter) name. If the 'string' macro should not be indicated as internal (\@.... are internally 'hidden) choose another name, like \mystringvar, this will remove the issue with \makeatletter...\makeatother \documentclass{article} \begin{document} \makeatletter ...


0

I like to refer to the title of you question "Embed TeX as a typesetting system". I did not find any open source ebook reader where i could try to implement TeX. But i did transfer a special formated pdf, created by TeX to my kindle ebook reader (kindle paperwhite, 300ppi). It looks wonderful. I hope someone will persuade the amazon kindle guys to implement ...


1

Here is a short example. The \tal command generates a random number. The \sekscifret command uses \tal and generates and writes a number with 6 digits. The loop inside the table inserts such numbers in columns and rows. \documentclass{article} \usepackage[english]{babel} \usepackage{lcg} \usepackage{forloop} \newcounter{ct} \newcounter{ctA} ...


2

You can do a case branching with expl3 and xparse: \documentclass{article} \usepackage{amsmath,amssymb,xparse} \ExplSyntaxOn \NewDocumentCommand{\zenbu}{m} { \pteromys_zenbu:n { #1 } } \cs_new_protected:Nn \pteromys_zenbu_in:n { (\,\forall #1) } \cs_new_protected:Nn \pteromys_zenbu_sqsubseteq:n { [\,\forall #1] } \cs_new_protected:Nn ...


1

Please refer to the MEW instructions to have a consistent one. This is an expl3 based solution. To switch the rowcolor, the compiler should be informed if the new insertion is (or not) a weapon subtype. In such case, it have to hold on the previous rowcolor. Otherwise, it switches it. The compiler is informed about subtypes via \weapon*. ...



Top 50 recent answers are included