# Tag Info

26

The 'manual' for LaTeX is LaTeX: A Document Preparation System by Leslie Lamport. This is as you observe a commercial book and one is therefore expected to visit a bookshop or library to obtain a copy. As you might also note, much of the same information as in Lamport's book is available in one or another free form (and other commercial offerings). To ...

11

The manual which the error message refers to is Leslie Lamport, LaTeX: A Document Preparation System (second edition) published by Addison-Wesley. The publisher's page is at http://www.pearsonhighered.com/educator/product/LaTeX-A-Document-Preparation-System/9780201529838.page

2

This does only partially answer the question, but just notes where the error messages comes from: latex.ltx \gdef\@notdefinable{% \@latex@error{% Command \@backslashchar\reserved@a\space already defined.\MessageBreak Or name \@backslashchar\@qend... illegal, see p.192 of the manual}\@eha} The page number is coded into the error message, but ...

4

Don't rule out the .dtx method just yet :) With a nice makefile crafted for the occasion, your .sty is only a few keystrokes (and a few seconds) away. I use such a makefile for all of my LaTeX packages; see an example here. I favour the .dtx approach because it gives you colocation of documentation and code. I can't remember where I read/heard it, but ...

2

Copy/pasting that code into ShareLaTeX, it compiles with no errors and produces: What version are you using? And as a random note, compat=newest is generally not recommended. EDIT: I was able to reproduce your problem by compiling with only pdflatex filename. Since LaTeX needs to run gnuplot, you have to allow LaTeX to launch third party executables. ...

3

You can use a list like itemize \documentclass{scrreprt} \usepackage{blindtext} \usepackage{graphicx} \usepackage{enumitem} \newcommand{\myicon}[1]{\smash{\raisebox{-0.85\height}{\includegraphics[width=15mm]{#1}}}} \begin{document} \blindtext \begin{itemize}[leftmargin=*] \item Test \item Test \end{itemize} \blindtext \begin{itemize} ...

2

Using a hack of the example package. It could be a good idea make directly your own package based in example.sty instead of muddle the preamble on this way. \documentclass[a4paper]{article} \usepackage[margin=3cm]{geometry,xcolor} \usepackage{example,booktabs} \parindent0pt\parskip0em \columnsep .1\textwidth \makeatletter \chardef\escape=0 ...

2

My solution uses the temporary external file. The data are scanned in verbatim mode and saved to the file. Then the file is read with normal catcode settings, so the normal output is printed. Then the data from verbatim scan is used for verbatim output. \documentclass{article} \newwrite\verbfile \def\setverb{\def\do##1{\catcode`##1=12}\dospecials} ...

3

Doubt this is what the OP wants, but every now and then it's nice to do something from (almost) first principles, and convince myself that all that time I spent years ago reading Stephan von Bechtolsheim's TeX in practice wasn't completely wasted. Note that the use of \scantokens assumes that etex is used. \documentclass[border=10]{standalone} ...

1

I did not use the OP's code, but I show here how the filecontents, etoolbox and verbatimbox packages can be used to both typeset some code and display the source, all in one environment. EDITED to include it in a single environment, using the syntax \begin{enviro}{name}{description} <code> \end{enviro} I set the output using my own simplistic ...

Top 50 recent answers are included