{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

5
votes
1answer
372 views

How to use alsolanguage in \listings package?

I defined keywords for the JavaScript programming language and HTML. I have read that it is possible to use the keywords of both languages in a \listings code snippet. But in my example, the ...
3
votes
1answer
76 views

Statement (\STATE) indentation in Algorithmic package

I have the following code, \documentclass[]{memoir} \usepackage[utf8x]{inputenc} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{algorithmic} ...
15
votes
2answers
3k views

\listings code style for HTML5 (CSS, HTML, JavaScript)

I would like to create a code style for HTML5 that can be used with the \listings package. An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
6
votes
1answer
126 views

How to center the last line of a paragraph?

I am trying to center the last line of each paragraph to keep with an old style typesetting. I tried using the example by Gonzalo Medina in How to center text without adding space AND not altering ...
2
votes
1answer
486 views

fancy chapter title page for entire document

How to enable this style as well for TOC and bibliographypage ? Note that, I'm using scrreprt document class
3
votes
2answers
314 views

LaTeX Capabilities: Complicated and Important Equations

As I am introducing LaTeX to an audience, I'd like to show how it can render equations beautifully. As such, I'd like one equation (math/physics) that combines many different formatting requirements, ...
2
votes
2answers
483 views

How to reformat Algorithm in memoir document class?

I'm trying to typeset algorithms in the memoir class. I'm using the algorithmic package with a custom environment as this was the only way I could get the list of algorithm to display correctly in the ...
6
votes
4answers
1k views

Enumeration with several items per line, several lines and nicely formatted

Based on Alan's answer here, I would like to be able to create nicely formatted "inline" enumerated lists. The issue I have is that the space between items on a line is always fixed, which does not ...
3
votes
2answers
2k views

Importing LaTeX table code into LyX

I create tables in a spreadsheet program, convert them to LaTeX code and then use an ERT to import into my LyX document. When I paste the LaTeX code the entire thing turns out very ugly looking. The ...
2
votes
3answers
269 views

Correct uniform font formatting for included graphics

Uniform Font Formatting for Included Graphics as in the Rest of the Text This question is not about vector or raster imagery, but about the application of uniform font in the entire file including ...
3
votes
1answer
1k views

Using \scshape and \bfseries together

A very obvious one I suspect, but when I try to do the following the small caps are over-ruled by the boldface, so I get lowercase rhubarb rhubarb. Is there an easy way to get \scshape\bfseries? ...
2
votes
2answers
399 views

xwatermark package: help using small caps and putting watermark on top of text

Hi in the linked question I asked how best to use AtBegShi to put titles on to of a page as a title. I'm using these as the equivalent of an MS Word textbox at the top of each page that carries the ...
7
votes
2answers
195 views

Reorder sections based on a variable?

I have a CV I've created in LaTeX (using the moderncv package). I'm trying to create flavors of the CV based on variables. What I would like to do is to generate the sections in a different order. ...
2
votes
2answers
233 views

How to remove the chapter number from section number? [duplicate]

I use Roman for Chapter numbers, and I don't want sections to be numbered as VIII.2 (while I still want sections to be numbered within chapters). How do I do that? i.e. instead of VIII.2 sections ...
0
votes
1answer
1k views

Setting single row height with multirow

I have a table in LyX document. And I'm using multirow to span text across multiple rows. For example I might want the text to span across 2 rows, the problem occurs when it doesn't fit, then it just ...
2
votes
1answer
284 views

Special chapter title formatting

Using the book class. I would like to have chapter titles that look like this: | CHAPTER ## | | Chapter Title (italic) | Can titlesec do this?
1
vote
2answers
130 views

Making text in {braces} of an \item appear bold

Is it possible to redefine \item to have the text in braces appear bold? \documentclass{article} \begin{document} \begin{itemize} \item{Paper}: a white substance used for writing symbols. ...
5
votes
1answer
770 views

How to apply formatting (sans-serif, color etc.) to multiple paragraphs?

Some LaTeX formatting commands like \textcolor{red}{...}, \sout{...} or \textsf{...} work fine when the thing inside is a single paragraph but fail to compile if you put a paragraph break in the ...
4
votes
1answer
564 views

Changing formatting of URL in biblatex \footcite

I've switched from bibtex to biblatex due to having to use \footcite based on university's requirements for writing a report. It may be worth noting that I'm also very new to (La)TeX. I'm only having ...
6
votes
2answers
1k views

Modify default memoir chapter style

I'm using memoir and using its default chapter style. what I'm looking to do is to change the format from chapter 1 chapter title to something like this: chapter 1: chapter title I'm ...
7
votes
1answer
276 views

Customising theorem style

I wish to customise my theorem style to something like the one shown, but I couldn,t figure a universal definition of parameters. Some suggestions? The code: \documentclass{article} ...
1
vote
2answers
335 views

Glossaries in List of Figures overflow

Given a figure with a caption, in this caption a glossary term in used as in \gls{wysiwyg} At the document beginning, after the contents, the \listoffigures command is given. As the caption ...
0
votes
2answers
160 views

How do I make frame environment play nice with \textbf?

I am getting a strange error message when I put textbf into a frame environment. Minimal Example \documentclass{article} \listfiles \begin{document} \begin{frame} \textbf{Lemma 1} \end{frame} ...
1
vote
1answer
208 views

How to use listings with multiple languages?

I've got a HTML document with JavaScript inside that I want to show in my article. For that I would like to use my JavaScript and HTML formatting. How can I get the listings package to use two ...
1
vote
1answer
443 views

Change the chapter font in TOC without using “tocloft” package

As using tocloft in book class produces some unexpected side-effect, I wonder how to change the chapter font (e.g. 1 Introduction) as sans serif without using any other packages? For example, change ...
3
votes
2answers
383 views

How to set the title of a book in the References in an upright font shape

I am trying to set the book title style to plain in namedplus.bst but don't seem to be able to. Currently this is what I have FUNCTION {format.btitle} { title emphasize } and replacing it with the ...
6
votes
1answer
178 views

coordinate number format \ang{}

In a table, I am listing several coordinates. I want to use a number format such as this W 95°13'14'' W 95°03'00'' ... I am using the \ang{} environment of the siunitx package. ...
8
votes
1answer
287 views

How to change the style of menukeys

Maybe I am just stupid, but I don't manage to change the style of the output of menukeys. The manual of this package lists in Section 4.2.1 some predefined styles. However, I can't find any hint of ...
1
vote
1answer
162 views

How do I hide “Chapter 0” in this custom style when using a numberless chapter?

Everything works perfect when I use \chapter{chaptername}, but I noticed that my table of contents and other similar non-numbered chapters have a "Chapter 0" in my header. \titleformat{\chapter} ...
3
votes
1answer
151 views

How can I fix the formatting of my axis using pgfplots so the axis titles aren't on top of the numbers?

How can I offset my ylabel so it doesn't smudge with the numbers? code \begin{figure}[H] \centering \begin{tikzpicture} \begin{axis}[ scale=1.8, xmin=-15,xmax=15,xlabel={Current $mA$}, ...
6
votes
2answers
656 views

Authors with multiple footnotes

Say I have an article. Under the title goes the name of three authors. The first author belongs to two organisations. The second belongs to one of the two from the first. And the last author belongs ...
4
votes
1answer
323 views

How to \label emails in appendix?

I would like to include ~20 emails in the appendix section of an article, so I in the article can e.g. write "...according to \ref{email1}". If I put each email in a subsection, then I have to find a ...
6
votes
1answer
457 views

How to format subsection title (without packages)?

I'd like to change the format for \subsection{} without using special packages. On report.cls we find its definition \newcommand\subsection{\@startsection{subsection}{2}{\z@}% ...
10
votes
1answer
220 views

How to create Windows-8-styled menus?

I'm writing a technical documentation and I want to explain step-by-step how to go through various menus. For example I used to write Open with > VLC media player. That's how it looks in Windows ...
5
votes
2answers
571 views

How to show carries in long addition?

I am doing binary addition in LaTeX, and I cannot figure out how to show carried numbers above my work. (That is, 1 + 1 = 0 with carry 1, etc.) Here is a minimal example of my addition without ...
0
votes
1answer
237 views

change location and size of title page logo

I have a title thesis with a logo: but i would like to get the logo (size 990x369) a little higher and bigger than current result (if I change the size of image it goes down...), also how can I ...
2
votes
3answers
133 views

format two tables inside a figure

I have a figure that contains two tables, I would like to give format to them. What would be the best option? {\footnotesize\begin{figure} [h!tb] \centering \begin{tabular} {l } \hline ...
2
votes
1answer
436 views

Turn off Hyphenation Without Text Running Into the Margins

I am rewriting (and updating) my resume in LaTeX. I was dismayed because LaTeX automatically hyphenates words that need to go onto a new line when a line is too long. I found a way to turn off ...
1
vote
0answers
199 views

Custom quote formatting [closed]

I have a .cls in which I have quite a bit of formatting... I'm trying to make a way of making my own "quote" formatting. I need to format my quotes centered, with a limited width for each line, and ...
4
votes
2answers
133 views

How to build two lines aligned maps

I would like to write a map between two objects, with a map below which specify where any single object is sent. To be more precise. I want to write $A \rightarrow B$, and right below it $\alpha ...
7
votes
2answers
399 views

How can I use line numbers with leading zeros?

I use the listings package for source-code and have read all documentation. However, it appears that leading zeros for line numbers are not implemented as standard option yet. How can I redefine the ...
10
votes
1answer
156 views

Different styles for the same document

Suppose I am writing a paper, which I plan to submit to a journal/conference, but also put on a preprint server like the arXiv. Each publisher has its own style files required for typesetting the ...
2
votes
1answer
598 views

printglossary makes abbreviations ending with periods

I use the glossaries package for my glossary and some acronyms: \usepackage{datatool} \usepackage[ngerman]{translator} \usepackage[nonumberlist,acronym,toc,section]{glossaries} \makeglossaries ... ...
3
votes
1answer
1k views

New line after subsubsection with llncs class

I get a new line after each chapter, section, and subsection, but not after anything lower than subsection, e.g. subsubsection or paragraph. MWE: \documentclass[runningheads]{llncs} ...
5
votes
2answers
137 views

How to get a picture with text to the right of it

what I want is to have a quote like this: I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong, neither yet bread to the wise, nor yet riches to men of ...
3
votes
1answer
450 views

Can \bibitem and BibTeX give the same output?

I am adding a slide to a beamer presentation containing some references and, since I only have three references, I was thinking about not creating an external .bib file this time. However I realized ...
2
votes
2answers
152 views

Beamer: remove the title highlight

I use the PaloAlto theme and the title of the title slide appears highlighted. Is it possible to remove the highlight and modify the title font?
3
votes
1answer
108 views

How to include a tex file with own formatting options

I have two tex files, tex1 and tex2. I want to include tex1 into tex2. I know \include and \input but those won't allow to include tex files with own formatting. tex1 has a header for example but tex2 ...
3
votes
2answers
1k views

Bibliography with biblatex: how to achieve bold labels using the authoryear-style?

I am currently writing my thesis with LaTeX using biblatex for citations and bibliography. I try to match a formal request regarding the first part of the bibliographic entries which have to look like ...
5
votes
1answer
183 views

thmtools - issue with head number style

I'm using thmtools to define a custom example environment. I'm styling the head as italic, but the number is not being styled correctly: it appears in normal mode instead of italic (the dot after the ...