Hot answers tagged

39

As one of the resident linguists here, I'd like to add my two cents to this discussion. First off, language meanings aren't carved in stone (or in dictionaries), but are essentially determined by language use. And although there are some experienced LaTeX users on the site who would like to prescribe a particular meaning to the term, this is fundamentally ...


27

The term isn't used (in that sense) anywhere in latex itself. It is usually means a small sample document that loads up some particular class and selection of packages and has some dummy text, so people can just start from that and edit rather than read enough documentation to build a new document from scratch.


16

A template is a complete example code for example to write the formalias for the master thesis of a special university. Then there are added special commands to insert author, etc. at the required place, fullfilling the given title page etc. of the special university. The problem with template is that a lot of them are buggy ... The template uses ...


10

That very same question has been asked before by Barbara Beeton in TUGboat That question is impossible to answer though, because the term template is not defined for LaTeX. Let's take a look from different perspectives. Why is someone searching for a template? Almost all users using that term want a base to start with. A mould to pour in content. An ...


6

I've discovered that I'm a Grumpy Old Man (GOM) but I want to thank everyone who has answered and obviously put a lot of thought into it. As a GOM, and considering the other answers I'm now thinking of a Template as being example (La/TeX) code, preferably as a complete example document or as a code snippet for a particular task. I think that my summary word ...


5

It is not possible to include a package for one chapter and 'unload' it for another part of the document. However, it's possible to limit the effects what a chapter does, depending on the chapter. Explicitly define two different pagestyles, one for the particular chapter and another one, that restores the settings (or changes them to something other!) ...


5

The class expects that the file name contains a number. Rename your tex-document e.g. to blatt01.tex. I also suggest a bug report. I would use this class only with great care. It contains lines like \RequirePackage[latin1]{inputenc} and the class and the underlying packages are old -- the last changes are from 2006.


5

The Miktex maintainer announced some days ago that the miktex server will be down on 9 may and 10 may.


4

The correct order should be \DeclareOption{<option>}{<code>} % any number of them \ExecuteOptions{<option list>} % optional \ProcessOptions\relax \LoadClass{<class>} After this line, other setup can be added, particularly addition of packages.


4

Yes of course look at any example latex file and you will see more than one \usepackage line. Typically the definitions in each package have global scope for the whole document but there is nothing stopping you structuring the package usage so that one package defines the document frontmatter commands, and another defines section heading layout, etc.


3

A good and common synonym for Template is Form. Templates aid in achieving sameness. Templates do that by setting or constraining visual or physical parameters of some productive process. Which aspects are duplicated by a template will vary by domain. For example, in a text document, the visual parameters of style are set by the template; but in the domain ...


3

When you compile with XeLaTeX the following document \documentclass{article} \usepackage{fontspec} \usepackage{anyfontsize} \begin{document} aaa \end{document} your log file will contain (/usr/local/texlive/2015/texmf-dist/tex/latex/anyfontsize/anyfontsize.sty Invalid UTF-8 byte or sequence at line 3 replaced by U+FFFD. Invalid UTF-8 byte or sequence ...


3

One could use a wrapper, at least for some of the key values, in order to prevent the \makeatletter...\makeatother pair each time: \documentclass{article} \usepackage{tcolorbox} \makeatletter \newcommand{\accesstcb}[1]{% \csname kvtcb@#1\endcsname% } \makeatother \begin{document} \noindent\rule{\textwidth}{\accesstcb{left@rule}} \end{document} The ...


3

No, this is impossible, and that's due to the fact that TeX is nothing like a procedural language. In Python, you have classes and functions, and you can clearly see what depends on what. In TeX, you can't see this at all, the package is typically one very complicated and self-intertwined monster.


2

When setting up a LaTex installation it is important that you are consistent with the permissions chosen for both the installation and usage of any portion of the setup. This is especially important for any Windows installation. 1) If you are going to be the only person using LaTeX on this computer and you do not have access to the admin settings, then ...


2

If you are using natbib, the option [round] sets the parentheses when you load the package. Try: \usepackage[round]{natbib} There are some other useful options too. See e.g. here.


2

Options are processed (by kvoptions) only when you give the command \ProcessKeyvalOptions which is missing in your input. As such, whilst you've declared lots of options none of them are ever 'activated'.


2

There's no way to change the spacing between the integral symbols (for double and triple integrals) provided by esint, because they are single characters in the special font associated to the package. What you can do is to modify the spacing provided by amsmath, which is defined by the \intkern@ macro. For instance you can do as follows; the extra -4mu kern ...


2

\documentclass{article} \usepackage[enableskew]{youngtab} \begin{document} $\young(~~~~,:~~,:~)$ \end{document}


2

You could use graphicx's \scalebox or \rotatebox \documentclass{standalone} \usepackage{graphicx}\begin{document} \raisebox{\depth}{\scalebox{-1}[-1]{$\Delta$}} $\Delta$. \raisebox{\depth}{\rotatebox{180}{$\alpha$}} $\alpha$. \end{document} This gives you:


2

Here's the listings way, without no further configuration, and a tcolorbox listings box, which is configurable for the listing options and other other options for the pure display \documentclass{article} \usepackage{listings} \usepackage[most]{tcolorbox} \begin{document} \begin{lstlisting}[language=C] #include<stdio.h> int main(int argc,char ...


1

I think this particular usage of the word template comes from Microsoft Word users. In that application, a template is essentially an example document with placeholder text and styling that can be customized to suit one's needs. Word ships with several templates for letters, invoices, agendas, etc. Templates can be pretty sophisticated with their own ...


1

The automatic translation is intended as a feature. Since the strings are not directly customizable, like in Word for example, the automatic translation helps the user without having to translate it yourself each time. Of course, these strings can be changed. In order to customize it, I loaded titlesec and also babel to help. Chương is now in full ...


1

This is perhaps not what is requested! \documentclass{article} \makeatletter \newcommand{\assertpackageprovidescommand}[2]{% \@ifpackageloaded{#2}{}{% \usepackage{#2}% } \@ifundefined{#1}{% \GenericError{Error!}{Package #2 does not provide \string#1}{See blabla}{} } } \@onlypreamble\assertpackageprovidescommand \makeatother ...


1

By using, as the OP did, \csname \foo@#1\endcsname, a macro is invoked with the name formed by substituting the definition of \foo followed by argument 1, #1. But what the OP's main code suggests isn't that the value of \foo is desired, but rather the letters "foo" themselves, so that the macro being invoked has the "name" of "foo#1", where #1's value is ...


1

I could not get things to compile, so I converted to Latin text and compiled with pdflatex. But, since your background lines did not require autowrapping, I suggest the use of the stackengine package: \documentclass[12pt,sanskrit]{memoir} \usepackage[b6paper]{geometry} \usepackage{graphicx} \usepackage[pages=some]{background} %\usepackage{xunicode} ...


1

Not sure if this is the best way, but I define \DTMshortdate{}. \documentclass{scrartcl} \usepackage[ngerman]{babel} \usepackage[ngerman]{datetime2} \let\svDTMgermanmonthname\DTMgermanmonthname \newcommand\DTMshortdate[1]{% \def\DTMgermanmonthname##1{% \ifcase##1% \or Jän.\or Feb.\or März\or Apr.\or Mai\or Juni% \or Juli\or Aug.\or Sep.\or ...



Only top voted, non community-wiki answers of a minimum length are eligible