# Tag Info

0

I used this: \makeatletter \patchcmd% No prefix [] {\csq@bquote@i}% <cmd> {\csuse{csq@bcount@\csq@thresholdtype}}% <search> {\def\parnote{}% \csuse{csq@bcount@\csq@thresholdtype}}% <replace> {}{}% <success><failure> \makeatother But this is better, thanks to Robert: \makeatletter ...

0

Some machine have bibtex but no biber installed, since the former is more standard than the latter. Additional installation of biber might be cumbersome or impossible. In at least one real-world case of collaborative work, this was a darn good argument against biblatex+biber and in favor of bibtex. In fact, this is an argument against biber in case of ...

0

\documentclass[12pt]{article} \newif\ifdone %\donetrue % uncomment when done \begin{document} Always visible. \ifdone Final only \fi. \ifdone Theorem \else Conjecture \fi: This paper will one day be finished. \end{document}

0

You did not provide a tested MWE, so the following solution will also consist of untested ideas. Create a final.tex file with \setboolean{draft}{false} somewhere in the preamble and \ifthenelse{\boolean{draft}}{% Some stuff for the draft% }{} everywhere after that. Generate your file draft.tex from final.tex with a make utility which calls sed as ...

0

You can also use phantom: \documentclass{article} \begin{document} $g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu}=R^{\beta\;\delta}_{\;\mu\;\nu}$ \\ $g^{\alpha\beta}g^{\gamma\delta}R_{\alpha\mu\gamma\nu}=R^{\beta\;\delta}_{\phantom{\beta}\mu\;\nu}$ \end{document}

0

I have defined a new command \newcommand{\tenmix}[3]{{#1}^{#2}_{#3}} where #1 is the tensor name, #2 the contravariant indices and #3 the covariant indices. But I can't choose the order among the covariant and contravariant index, however it is not necessary to type the signs of superscript and subscript ^ and _. For example, the Riemann tensor: ...

0

Short addition: For those who like bussproofs for the generated output, but would rather prefer not to use the stack-based syntax, I've written a frontend for bussproofs allowing for the specification of proofs in an easy lisp-like syntax. Within this syntax, you can define custom operators including precedence information (such that the addition of ...

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 ...

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.

0

When I asked my original question, I was new to the package background and to \parbox. In fact, I was (am) fairly new to LaTeX, having used LyX in the past. With a little more experience, I found a very simple solution to the original problem: how to get more than one line of "watermark-like" text at the bottom of the page. And that is simply to use \parbox ...

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!) ...

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 ...

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

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 ...

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 ...

40

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 ...

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 ...

28

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.

2

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

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 ...

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.

0

I am having similar issues at the moment, I think the problem is on their side. You can check if a site is down here: http://www.websitenotworking.com/miktex.org. It reports the website as not working atm. My error is ="connect failed in tcp_connect()" but since we can't access the miktex.org site I think we have the same source.

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

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 ...

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 ...

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.

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.

0

You can also use the class europecv2013 (see europasscv-template project on GitHub), with better support to pictures (also including the possibility to embed a qrcode) and better support to academic curricula (i.e. support to scientific results).

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} ...

Top 50 recent answers are included