Ubuntu Manual: L Tex For Authors and Translators: Kevin Godby
Ubuntu Manual: L Tex For Authors and Translators: Kevin Godby
Introduction
e Basics
Geing Started
Organization of Files
Style Guide
Formaing Text
GUI Elements
Graphics
Other document elements
Organization of Files
Ea of the apters of the manual has its own subdirectory:
Once you’ve selected a apter that you’d like to help write or edit, you
will find a .tex file in that apter’s directory. Some apters will have all
of their text in that one file, while other apters have split ea section into
its own file. If you see a bun of \input commands in the file, then you will
have to look in the appropriate .tex file for the text of that section.
Style Guide
Formaing Text
Punctuation
otation marks otation marks in LATEX are entered as `` and '', not as
". Single quotation marks are entered as ` and '. otation marks for other
languages are entered as their Unicode aracters.
Indicating a range If you wish to indicate a range (su as: pages – or
–), use an en dash. An en dash is entered in LATEX as two hyphens:
--. Do not put spaces before of aer the en dash when used to indicate a
range.
Special aracters ere are a few aracters that LATEX considers special
(used for its own syntax). To typeset these aracters, precede the aracter
with a baslash (\). e special aracters are:
$ % _ { } & #
\$ \% \_ \{ \} \& \#
GUI Elements
Menu items To give a sequence of menu items that should be selected, use
the \menu and \then commands. For example:
is typeset by:
kevin godby
Other gui elements ere are commands for other gui elements as well:
User input When quoting what a user should type, use the \userinput
command. If you’re just having the user press a key on the keyboard, use the
\keystroke command instead. For example:
is typeset as:
Type Hello, world! and press Enter.
Graphics
If a screenshot should be added at some point, make a note of it using the
\screenshotTODO command. Provide a description of what the screenshot
ubuntu manual: LATEX for authors and translators
should depict. is will add a warning notice in the pdf and will add that
screenshot to the to do list.
MISSING SCREENSHOT
Firefox web browser window
Paragraphs To start a new paragraph in LATEX, just add a blank line. You
don’t need to indent the paragraphs as LATEX will take care of this for you.
Margin notes e manual uses margin notes to provide definitions, tips, and
pointers to more information. To add a margin note, use the \marginnote
command:
Comments If you want to add a note to yourself (or others) in the .tex file,
just type a percent sign (%) followed by your note. LATEX ll ignore everything
on the line aer the percent sign.
This text will appear in the PDF. % But this text won't!
Remember, if you want a percent sign to actually appear in the pdf, you’ll
need to precede it with a baslash:
Terminal commands ere are also special commands for typeseing text
that appears or is entered into a terminal. An example will illustrate the
commands:
The \commandlineapp{fortune} program works like this:
\begin{terminal}
\prompt \userinput{fortune}
What we have to learn to do we learn by doing.
-- Aristotle, Ethica Nicomachea II (c. 325 BC)
\end{terminal}
$ fortune
What we have to learn to do we learn by doing.
-- Aristotle, Ethica Nicomachea II (c. 325 BC)
Lists ere are two types of lists that we use in the manual: numbered
lists and bulleted lists. Both lists work the same way, they just have different
names.
ubuntu manual: LATEX for authors and translators
\begin{itemize} \begin{enumerate}
\item First list item \item First list item
\item Second list item \item Second list item
\item Third list item \item Third list item
\end{itemize} \end{enumerate}
produces: produces:
Document headings
‣ \title{⟨book title⟩}
‣ \author{⟨book authors⟩}
‣ \part{⟨part heading⟩}
‣ \chapter{⟨apter heading⟩}
‣ \section{⟨section heading⟩}
‣ \subsection{⟨subsection heading⟩}
‣ \subsubsection{⟨subsubsection heading⟩}
‣ \paragraph{⟨paragraph heading⟩}
‣ \subparagraph{⟨subparagraph heading⟩}
Formaing commands
‣ \dash
‣ \url{⟨URL⟩}
‣ \prompt
‣ \rootprompt
Lists
e only part of lists that need to be translated is the text of the list items
themselves.
\begin{⟨itemize⟩} or \begin{⟨enumerate⟩}
\item ⟨list item text⟩
\item ⟨another list item⟩
\end{⟨itemize⟩} or \begin{⟨enumerate⟩}
Glossary-related commands
‣ \newglossaryentry{⟨keyword⟩}{name={⟨term⟩},description={⟨definition⟩}}
‣ \gls{⟨keyword⟩}
‣ \glspl{⟨keyword⟩}
‣ \Gls{⟨keyword⟩}
‣ \Glspl{⟨keyword⟩}
Cross-referencing commands
‣ \label{⟨label⟩}
‣ \ref{⟨label⟩}
‣ \pageref{⟨label⟩}
‣ \nameref{⟨label⟩}
‣ \chaplink{⟨label⟩}
‣ \seclink{⟨label⟩}
ubuntu manual: LATEX for authors and translators
‣ \frontcover
‣ \mainmatter
‣ \appendix
‣ \backmatter
‣ \providecommand{⟨command name⟩}{⟨command definition⟩}
‣ \documentclass[⟨options⟩]{⟨document type⟩}
‣ \include{⟨file⟩}
‣ \begin{⟨environment⟩}
‣ \end{⟨environment⟩}
‣ \printglossaries
‣ \printindex
‣ \LoadLicenseFile
Notes for Editors
Obsolete commands
ere are a few commands that were used in the beginning of the project that
have since been replaced. If you encounter any of these obsolete commands,
please replace them with the updated command.
. Uninstall all the Ubuntu TeX Live paages: sudo apt-get remove
texlive-*
. Download the TeX Live install script: http://mirror.ctan.org/systems/
texlive/tlnet/install-tl-unx.tar.gz
. Unpa the tarball: tar -zxvf install-tl-unx.tar.gz
. Change to the newly-unpaed directory: cd install-tl-*
. Run the script: sudo ./install-tl
. Select where you’d like to install everything, and any other options you
prefer. I highly recommend enabling the “create symlinks to standard
directories” option.
. To compile a translation, run: make ubuntu-manual-⟨lang⟩.pdf where
⟨lang⟩ is the language code (see the po/ directory for a list of supported
languages).
Note that not all languages are supported yet (especially those requiring
non-Latin scripts).
If you have any questions or run into any problems, feel free to contact me.
I’m usually in irc as “godbyk” and can, of course, be contacted via email.