{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

13
votes
2answers
1k views

Why couldn't (La)TeX's layout model be as simple as CSS's layout model?

I feel CSS's layout model is simpler than (La)TeX's layout model. At the time Knuth developed TeX, the idea leading to CSS model is a "difficult" things? Or the CSS layout model is not appropriate to ...
10
votes
1answer
209 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 ...
9
votes
2answers
534 views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
9
votes
1answer
146 views

Align/avoid numeration and labels in a custom biblatex format

I need list references with a custom format, with a label showing the type of entry (@article, @book, etc.) and labeling fix/variable fields in a tabular environment. I have successfully obtained ...
8
votes
1answer
655 views

Index with an initial letter of the group [duplicate]

Possible Duplicate: package makeidx: print first letter for each group of keys I'm trying to adapt the index of my contribution such that each group of words (starting with the same letter) ...
8
votes
2answers
4k views

How do I keep a string of text together without it doing a line break?

I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
16
votes
3answers
979 views

Range of Dates (1999-01 — 2012-12)?

How to typeset range expressed with dash of two ISO8601 dates ? 2010-01--2012-03 or 2010-01---2012-03 or another option ?
15
votes
2answers
666 views

Fancy cross-referencing

As an extended idea of Using section sign (§) for cross-references to sections, how can we use See ⚙5.2 and ☰5.3 in ☞123. instead of: See figure 5.2 and table 5.3 in page 123. ...
15
votes
2answers
3k views

Add second enumeration item on the same line?

I'm writing a document that has a large number of lists containing short enumeration items, and I'd like to be able to [manually] put multiple items on one line. Thus, for example, I'd like to say ...
12
votes
2answers
2k views

How to insert code and graphic in textbox

I want to put a graphic and a little linux bash code in a textbox, like the picture blow... with the follow in problem: all in a textbox with yellow backgroud left part is a graphic (a finger)... ...
9
votes
2answers
459 views

Two code blocks working syncronously

I need two code blocks in my beamer frame. One will be the code and other will be the output for each line of code. I want to uncover each code line and corresponding output line. So, first it will ...
7
votes
2answers
4k views

How to create a signature, date page?

I need to create a signature page as shown in the image below in LaTeX. I have no clue on where to start and the commands that I would need. Could someone please help me.
5
votes
3answers
224 views

Possible CSS type features?

Hi I am doing a project for my 10th grade Graphic design class and we have to make up an inspirational type thing with the emotion words Bold, in a bigger size and capitalized and I was wondering if ...
4
votes
2answers
805 views

siunitx rounding in table with parentheses

I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers. ...
3
votes
1answer
123 views

Can we have viewer specific text in a pdf generated by pdfLaTex?

I am wondering if we could have a pdf file, which can tell what viewer its being viewed with. I was looking for some tex command, which says something like: If viewer is Acrobat, print "Hi You are ...
14
votes
2answers
3k views

How to typeset “evaluated at” vertical bar with two conditions instead of one?

I would like to typeset the differential of a multivariate function evaluated at a point where two of the variables take precise value. I typeset the "evaluated at" using a vertical bar, at the bottom ...
12
votes
1answer
9k views

All letters in uppercase, but the first letter bigger than the other ones

I want to know how can I achieve this effect in LaTeX: Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the ...
10
votes
1answer
1k views

What are the standard styles to format LaTeX source code?

In any other programming languages, we have several ways to format our source code. For example, some of the standard styles are: Allman(ANSI) K&R GNU .... Within LaTeX, I couldn't find a neat ...
9
votes
1answer
427 views

Subsubsection: remove the newline (like paragraph)

Using the article document class, how can one remove the newline at the end of a subsubsection title? I am using \documentclass{article}; I do not currently use titlesec or any of the alternatives; I ...
9
votes
1answer
354 views

Is there a workaround against loss of precision in pgfplots axis?

I am generating a bunch of plots automatically using pgfplots. For some datasets the span of data in one axis (y) is relatively small (relative to the absolute value) and therefore pgfplots when ...
9
votes
2answers
7k views

Format ToC for thesis

I apologize for the unspecified and broad question but I have no way to be specific. I'm looking to generate the TOC and List of Figure, List of Table according to the format required by my school. ...
8
votes
3answers
179 views

How to customize enumeration to implement Brazilian law texts?

This is a standard model of a Brazilian contract: http://www.consultta.com/modelos_contratos/modelos_contrato/0215.htm It more or less follow the way Brazilian laws are written: as you can see, the ...
8
votes
2answers
2k views

Equivalent of CSS “float:left;” for images

What I am try here is have the image on the left side and it should be surrounded by text on the right and bottom side. For example how can below image_3.png float to left? \usepackage{lipsum} ...
6
votes
2answers
1k views

Customized table of contents

I need to format the table of contents for a compilation of articles in a very specific format: About this volume Author 1 Preface........................first page-last page Articles Author 2 ...
6
votes
1answer
841 views

Footnote mark in regular or other font styles

Within my text, I use \footnote to place text. This places a small superscripted number within the text as well as a number at the bottom of the page followed by the data within the footnote. How ...
5
votes
1answer
183 views

format special words in text

Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold ...
5
votes
1answer
550 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 ...
5
votes
1answer
1k views

floatrow: Changing the formatting of table footnotes

The floatrow package, which is useful for customizing the layout of floats, also allows to add footnotes as well as additional explanations (besides the caption) to tables. (The main commands are ...
4
votes
3answers
647 views

Tex like formatting on blog posts

When I write reports for school I usually use an IEEE formatted LaTex document these days because I feel like it just looks so much better then anything I can seem to do in Word. I have a blog and ...
3
votes
3answers
3k views

Using \MakeUppercase in \@startsection

I was toying a bit with the \@startsection command to change the layout of chapter / section headings. More specifically, I wanted my headers to be converted to uppercase. I was following an example ...
12
votes
4answers
1k views

Replace . (period) by , (comma) in numbers

I pass a bunch of numbers into a custom command defined via \newcommand{\mycmd}[1]{...}: \mycmd{1.12} \mycmd{5.32} \mycmd uses the number to draw a certain figure. On top of that, I would like to ...
8
votes
1answer
2k views

Changing the font for “alert” in beamer

I would like to change the behaviour of \alert so that the text is still red but now boldfaced, say. How can I do this? I have Googled, but all I can find is how to change the colour, as in Changing ...
8
votes
1answer
550 views

How to mark book paragraphs as note, warning, tip etc.?

In my text I have some paragraphs that should be denoted as "note", "caution", "tip", "story". These paragraphs should be rendered with darker background and an icon on the left side. I was not able ...
8
votes
2answers
2k views

siunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbers

This is a follow-up question for Aligning numbers by decimal points in table columns. User lockstep provided this solution: \usepackage{siunitx} \begin{document} \begin{tabular}{S[table-format=3.2]} ...
6
votes
2answers
113 views

How to create multicolumns list environment with the package 'enumerate'?

Let us consider The following example \documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate} \item Which of the following numbers is the largest ?\\ ...
6
votes
3answers
845 views

How to remove brackets from the optional title in amsthm?

This is a follow-up question of this question. when using \begin{theorem}[Open mapping]...\end{theorem}, I received Is it possible to change the format into "Theorem: Open Mapping."(boldface)? ...
6
votes
2answers
388 views

Use italic ampersand in different sizes depending on environment

This is going to be a little complicated: in the spirit of Bringhurst I am trying to incorporate italic ampersands into headings. I am using a LuaLaTeX modified version of classicthesis, hence the ...
6
votes
3answers
2k views

How to cite authors in small cap with \citet?

I followed Natbib reference sheet and \citet works as expected. I would like the author's name to appear in small caps, how can I do that? I guess I should do: Define \citenumfont to be a font ...
6
votes
4answers
4k views

How to change the formatting/font of page numbers?

So, I'm using the article class, and I'd like to make the page number smaller, and set it in a different font. I don't need to create a new pagestyle, necessarily, and I'm hesitant to do so without ...
6
votes
2answers
2k views

Disable/toggle smallcaps in the title

I am using the amsart document class. I want to to change the text in the titles (such as in \author) to be written normally and not in small caps. How can I change this globally? That is, so that ...
5
votes
1answer
419 views

Slashbox with tables: Adjusting the diagonal separator for multiple rows

I am using the slashbox package in a table as shown next. However as you can see, the diagonal line in the first cell is not the real diagonal of that cell. This is because of the existence of more ...
5
votes
1answer
852 views

Make volume bold in custom bibliography style .bst

Since I could not find the style that met my teacher's requirements for the bibliography I have to do, I created my own bst with latex makebst on my mac. I had chosen to make the volume bold but it ...
5
votes
1answer
143 views

Remove Formatting in Table of Contents

I have custom colouring in the section headings, i.e. \section{\textcolor[red]{Heading}}, so when I use \tableofcontents it prints the table of contents including all the unnecessary colouring. Is ...
5
votes
1answer
172 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...
5
votes
2answers
896 views

Environment with first paragraph in bold and no pagebreaks

I would like to setup a new environment which typesets the first paragraph in boldface, the following paragraphs in normal text, and with (possibly) no pagebreaks between the first paragraph and the ...
5
votes
2answers
611 views

Spaces behind \textgreater not working as expected

I have the following code: \textit{WMC \textgreater average} But the text looks like this: WMC >average It does not even change if I add even more spaces. So what am I doing wrong?
4
votes
2answers
443 views

How to save and restore chapter's heading format

I am writing my thesis using a template provided by the university. It requires using the report class. To format the headings in the front matter, it uses the titlesec package and redefine the format ...
4
votes
1answer
289 views

Biblatex \autocite in case of would-be nested footnotes

I have the same situation as the following user: biblatex: Enhancing \autocite in case of would-be nested footnotes I want to use \autocite within a \footnote. This results in the citation being ...
4
votes
2answers
3k views

Changing the subfigure caption by removing brackets & font of the subcaption

Note that by using \usepackage[bf]{subfigure} I'm able to change the label of the subfigure to be boldface. However, the label appears with brackets, e.g., "(a)". How could I get a subfigure label ...
3
votes
2answers
139 views

How to do \newcommand{\filepath}[1]{\verb!#1!}?

I want to define a command \filepath so that I can use \filepath{foo_bar.cpp} and it is printed in monospaced font. Also, why does this not work? I get strange errors: ...