# Tag Info

3

You could use \AddToKeyvalOption{gitlog}{write}{...} to define some macro (the same for the nowrite option). Then said macro will only be defined if either option has been used and you can test for its existance. Here is a complete example that defines \gitLog@writeset only if either write or nowrite has been set (I use etoolbox instead of xstring – simply ...

3

A surface is divided into more or less small rectangles. For every small rectangles you can build the direction vector. The angle of this 3D vector and the distance from the origin allows to sort all rectangles. A direction vector which shows into the paper plane marks an invisible area. If it shows out of the paper plane it marks a visible area. These areas ...

37

More complicated. \usepackage: can check that the package is newer than a specified version date can have options specified for loading the package can inherit options from the \documentclass line only loads .sty files checks that it is only called after \documentclass and before \begin{document} ensures catcodes are correct for LaTeX package syntax ...

4

\RequirePackage{longtable} \makeatletter \@ifpackagelater{longtable}{2013/10/28} {\PackageWarning{mypkg}{Longtable newer or = to 2013/10/28}} {\PackageWarning{mypkg}{Longtable is older than 2013/10/28}} \@ifpackagelater{longtable}{2014/10/28} {\PackageWarning{mypkg}{Longtable newer or = to 2014/10/28}} {\PackageWarning{mypkg}{Longtable is older ...

5

Updated answer This is Enigma. Notice that Enigma is symmetric. Thus you can encode and decode at the same place. In the following example, the first input AN ENIGMA MACHINE... comes from the Wikipedia article. And then I copied and pasted the output ISWXACOIOIGKAXHF...to be the second input. Thus we got ANENIGMAMACHINE as the second output, which is what ...

6

This is not an issue related to LaTeX. You simply ask, how to encrypt parts (!) of an ASCII file. Some editors are able to do this. As an example, orgmode, a major mode of Emacs, provides encryption of sections, see here: http://orgmode.org/manual/org_002dcrypt_002eel.html The whole process is cumbersome: you need the software on both sides to encrypt and ...

Top 50 recent answers are included