{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

3
votes
1answer
852 views

Why doesn't the \closing center in my letter?

If I pdflatex the below Latex, then "Kind regards," and "Sandra" doesn't get centred. If the letter is two pages long, then it does. Question How do I get this centred when my letter is just one ...
5
votes
1answer
556 views

Formatting page number (fancyhdr?)

Could anyone please show me how to get this page number formatting:
1
vote
0answers
84 views

How should I add visual indications of excerpted sections? [duplicate]

Possible Duplicate: Putting a bar in the margin How to make continuous (but breakable) vertical rule along left side of paragraph? I'm planning on including large excerpts of publications ...
16
votes
3answers
662 views

Conflict between microtype, LuaLaTeX, and otf fonts when typesetting material in small-caps

I'm using the microtype package (microtype beta 2.5 build 08) to modify my document and I'd like to retain its functionality across all font shapes with the exception of small-caps (\scshape). How do ...
3
votes
0answers
41 views

Is there an easy way to comment out a whole block? [duplicate]

Possible Duplicate: Multi-line (block) comments in LaTeX Is it possible to comment out a whole block in LaTeX source? For example, like in Java: // This is an in-line comment. /* This ...
7
votes
1answer
278 views

Distinct formatted page numbers with glossaries and Xindy

This is somewhat related to this question, but using Xindy as a backend, not makeindex. I am attempting to create an index using glossaries, and in this index some page numbers have a special ...
8
votes
1answer
2k views

fancy chapter title page

How can I have a chapter title page like the following? Note that, I'm using book document class
0
votes
1answer
343 views

How should a salary negotiation letter look like? [closed]

Does anyone know if there exists a template for salary negotiation? Or perhaps how one should look like?
3
votes
0answers
9k views

Where should I use \textsc? [closed]

When should I use macro \textsc ? What is common practice in document like diploma thesis? Should I use it for names of persons, names of described entities of particular interest or in some other ...
7
votes
1answer
359 views

Make numbers in table bold w/o changing width

I want to highlight some numbers in a table using \bf{}. However, the bold numbers also get wider but I want them to neatly line up with the rest. How can I avoid this?
2
votes
0answers
53 views

Difference between \mathrm, \operatorname and \text? [duplicate]

Possible Duplicate: What’s the difference between \mathrm and \operatorname? I am a beginner of latex, and am always having a hard time differentiate these commands since they seem always ...
2
votes
0answers
63 views

special latex words [duplicate]

Possible Duplicate: How to write (La)TeX (with braces) [or any other TeX-related logo] I'm looking for other specially formatted words in LaTeX similar to \LaTeX or \TeX. Does anyone know ...
2
votes
1answer
246 views

How does one framebox a proof?

I am trying to frame box a proof I have written For instance \documentclass[11pt]{article} \begin{document} \framebox{ \emph{Proof} \\ \text{content of proof goes here} } \end{document} ...
4
votes
1answer
337 views

How to display (inline) LaTeX commands properly?

When writing about LaTeX, I tend to use \verb, which could look like that: \documentclass{article} \usepackage{lipsum} \begin{document} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. ...
3
votes
1answer
259 views

Formatting labels of chapters and sections

I'm just starting with this amazing world of LaTeX. I'm wondering how to set the format of a document (with some stuff centered and sections with no relative numbering) I'm trying with the titlesec ...
5
votes
1answer
2k views

Remove 'Chapter' text from chapter headings and have chapter number on the same line as chapter title [duplicate]

Possible Duplicate: Chapter formatting Apologies if this is something simple, but I seem to be searching in the wrong place for an answer. I have a document of type report. It is currently ...
7
votes
1answer
478 views

Translating custom \section format to titlesec

I have some custom \section formatting with a horizontal rule, and I'm trying to DRY out my code by using titlesec to define default formatting options. But I can't exactly reproduce what happens when ...
5
votes
1answer
919 views

Alternative to \text inside an align environment

Is there a way to write texts without resorting to using the \text macro every time I write something in the align enviroment? I am trying to write a proof and pretty much 90% requires me to write ...
5
votes
1answer
656 views

Scaled ticks with ymin and ymax

For a publication I am preparing multiple plots with PGFPlots and would like to have them all look alike, i.e. having the same axis and identical ticks. For this I intended to use ymin and ymax, but ...
4
votes
1answer
155 views

Caption for a listing

I have captions on each of my listings. Each caption is prefaced with "Listing # [text]" where # is the number of the listing. Each caption is centered over my listing. How can I modify the options of ...
3
votes
2answers
160 views

Formatting the Listing

The listing I have in my paper is Java Code. When it is displayed through TeX I lose some of the formatting that I did inside my .java files. For example, all of my comments in my code were lined up, ...
1
vote
2answers
130 views

Change Page Ordering

In one of my documents, the first few (lets say 2) pages include code output and settings and configurations, in terms of communicating with R for example (for plotting etc...), I would like these ...
4
votes
1answer
310 views

ClassicThesis TOC headlines

Why the headlines in the TOC are in \normalfont and not in \spacedlowsmallcaps as the rest of the document? How can I make it \spacedlowsmallcaps? \documentclass[% headinclude,% ...
4
votes
1answer
245 views

show acronym in bold

I'm using the acronym package. The first time I use the acronym the full name will be written. What I would like is to have the acronym in bold while the full name is NOT in bold is that possible? ...
3
votes
1answer
474 views

Format title output bold and larger

I use the code \documentclass[a4paper]{article} \usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm} \usepackage{indentfirst} \usepackage[mathscr]{eucal} \usepackage[utf8]{vietnam} ...
1
vote
1answer
49 views

Add label to textual data

This question is extremely basic and I know how to solve it basically but it is a workaround and I was wondering whether there is a much better way to do it - here is the problem: I'd like to give ...
8
votes
1answer
429 views

Cursive text after _

I would like to write H2O with a small 2 below the H. H_2 O (water) However, all text after _2 becomes cursive. It appear that something obvious is wrong but, I cant find what it is. Anyone how ...
2
votes
1answer
136 views

How do I modify the section tag? [duplicate]

Possible Duplicate: How to add a dot after the section number? Each of my section tags looks like the following: What I want is punctuation after each section number. I am not sure where ...
2
votes
1answer
302 views

Java Code in a paper

I am writing a paper and would like to include some of my "real-world" Java code. What is the best way to accomplish this? I would like to see two templates: My explanation to the right of my Java ...
6
votes
1answer
258 views

Simple way to place an array of symbols above a letter?

I would like to typset something similar to the symbol used for the "generalized spherical harmonics". This involves placing an array of dots above a letter. The array will have two columns, and the ...
5
votes
1answer
445 views

Document class article, maketitle with logo

I want to modify the title section of the article class to look like something in the attached figure. Basically what I want is a kind of logo with flushed text (title, author, affiliation). I tried ...
23
votes
2answers
644 views

Add a rule underneath “Figure 1”

I want to add a line beneath the figure caption such as Figure 1 Figure caption text here.... I managed to include a newline, change the color and look of the caption via caption package: ...
6
votes
1answer
586 views

What is wrong with the following latex code? [closed]

I have written this code to formulate the algorithm for merging two arrays, but I get an error. \begin{algorithm}[t] \caption{Serial Merge} \label{alg:insert} \begin{algorithmic}[1] \Require Two ...
14
votes
1answer
427 views

TikZ - Placing several numbers in one cell of a Sudoku grid

I've put at the end of this post one code coming from this page which is a pretty easy way to display Sudoku grid. I would like to have help so as to add the possibility to indicate several entries ...
11
votes
3answers
2k views

How can I make a set of latex flashcards that I can print to write my answers on one side?

I want to adapt the code from the answer to latex flashcard problem so that the right hand side has a question and the left has the answer rather than on the bottom of the page. This is so that I ...
7
votes
1answer
560 views

How to best set chapter title color in the memoir class's Hansen style?

I am tinkering with the Hansen chapter style for the memoir class, as reviewed and listed in texblog. The Hansen style is unfortunately not discussed in the memoir class documentation. I changed it ...
1
vote
1answer
107 views

Page numbers and address formatting in letters in LaTeX

I've recently turned away from the letter document class for writing my covering letters as I'd like a little more creative freedom with the formatting, and as my own little exercise in formatting ...
0
votes
1answer
56 views

change page which is created for `\part`

Is there a way to change the style of the heading etc. for \part? I want to change the layout to leave out "Part 1." and instead just print out the part's name. Actually I could change the question ...
6
votes
2answers
387 views

paragraphs not automatically indenting

with the following code my paragraphs aren't automatically indenting... I'm confused as to why because I've done a decent bit of LaTeXing before with very similar packages and with the same article ...
4
votes
3answers
237 views

Changing the header row style of a table to discriminate it from other records

I wanted to change the header of table to discriminate it from other records. It can be changing bounding box or font or what ever it is usual. \begin{table} \centering ...
7
votes
1answer
177 views

titlesec: why is contents a section?

I've been playing around with the titlesec package combined with the scrartcl class. I find the headings titles of scrartcl a bit ugly, but I do like the fact that I can scale font sizes to 8pt. ...
5
votes
2answers
1k views

Good format for homeworks in LyX

I am using LyX to type in my homework solutions, but I don't like my format. The homework itself is in the format of questions 1,2,... and each question has sub-questions: 1.1,1.2,... etc In the ...
2
votes
1answer
154 views

Prevent newline in title of beamer presentation

How can I prevent the new line indicated in the picture below? Here is a MWE: \documentclass[svgnames,9pt]{beamer} \usepackage[latin1]{inputenc} \usetheme{Warsaw} \setbeamertemplate{headline}{} ...
1
vote
1answer
633 views

Divide an algorithm on two pages

\usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[H] \caption{My algo} \begin{algorithmic}[1] \STATE instruction 1 \STATE instruction 2 ......................Many ...
1
vote
1answer
430 views

How to align middle-align text in a parbox?

I am trying to add a frame around a text which would be centered and vertically aligned to the middle of the box but I can only center the text. What should I do to align the text to the middle of ...
1
vote
1answer
959 views

customizing moderncv \section title style

I would like to customize \section style in order to have the following title (forget the horizontal line) : I imagine that I need to modify the following definition: ...
1
vote
2answers
5k views

Section and Subsection Heading Style [duplicate]

Possible Duplicate: Formatting section titles How can I change the format of section, subsection and ... to something like below? 2.1 | Greenhouse Effect
3
votes
1answer
188 views

Can the acronym package be told to use a certain style?

I'm using the acronym package and I'm trying to add generic styling. Specifically, I want the first mention of the acronym to expand the long form in italics. What I've done so far is to say: ...
0
votes
1answer
230 views

How to remove bold in ToC, ideally without a package

I am writing my thesis, using a document class unique to my university - based on the article class. I have to remove ALL bold formatting in the Table of Contents, and for some reason I get an error ...
3
votes
1answer
573 views

Remove underline from Table of Contents

I'm trying to create a Table of Contents but I am having some trouble getting it to look how I want. At the moment I have the section headings underlined in the document and because of this when the ...