{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

0
votes
0answers
258 views

Underscore character (_) that's part of a word [duplicate]

Possible Duplicate: Escape character in LaTeX Underscore in words I want to write a name like LKU_IF which contains an underline. When I write it in Latex it doesn't show the result properly....
8
votes
1answer
390 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 meaning....
6
votes
1answer
1k views

Formatting page number (fancyhdr?)

Could anyone please show me how to get this page number formatting:
18
votes
3answers
1k 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 ...
4
votes
1answer
290 views

Poorly formatted newlistof with memoir

I am having trouble adding a newlistof to a memoir file. My example follows the memoir answer example very closely, but I get an ugly "List of Comments" -- spacing across the page and returns are ...
3
votes
1answer
224 views

How can I temporarily change title of contents of subsection formatting using titletoc

I have a common document type (grant application) which expects listed aims, usually enumerated as Aim 1, Aim 2, etc. In the MWE below, an article class works fine to format the subsection headings ...
2
votes
1answer
76 views

Removing the italicized parts from an APA bibliography

This journal guidelines requires that References should follow the APA style, but without any use of italic type In the apa6 package some parts of the references are italicized. I'm wondering,...
3
votes
1answer
2k 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 ...
1
vote
0answers
103 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 in ...
3
votes
0answers
47 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 ...
12
votes
3answers
4k 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 ...
0
votes
1answer
444 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?
4
votes
0answers
17k 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 ...
8
votes
1answer
2k 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?
3
votes
0answers
85 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
65 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 of ...
2
votes
1answer
470 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} ...
2
votes
1answer
165 views

Redefine quotation mark usage

I would like to be able to manually redefine quotation mark usage, preferably without having to load an external package. Judging by the answer to How does TeX's mechanism for sorting out quotation ...
5
votes
1answer
1k 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. \...
1
vote
2answers
159 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 ...
10
votes
1answer
14k 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 ...
8
votes
1answer
771 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 ...
6
votes
1answer
7k 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 ...
13
votes
1answer
262 views

Formatting floats differently based on placement

I'm interested in changing how floats are formatted depending on whether they are placed at the top, bottom, or middle of a page, or on a float page. One package I am aware of that does something like ...
4
votes
1answer
251 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 ...
4
votes
1answer
479 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,% ...
3
votes
1answer
2k 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} \begin{...
4
votes
1answer
603 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? Ex:...
10
votes
1answer
4k views

How to typeset the formatted counter in compactenum (paralist)?

I am using the compactenum environment from the paralist package, and would like to know how I can typeset the counter. What I mean is \begin{compactenum}[a)] \item I would like to typeset "a)" here....
1
vote
1answer
55 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
1k 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 ...
14
votes
1answer
732 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 ...
2
votes
1answer
267 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 the ...
2
votes
1answer
373 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
602 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
749 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
1k 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
1k 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 ...
5
votes
2answers
2k 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 ...
7
votes
1answer
1k 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
155 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
646 views

Command for an underlined text and boxed text

How can I create two commands for a question with an underlined text in it or box with text in it in a sentence. This is a sample: Using the commands for underline and box I can now write it this ...
0
votes
1answer
62 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
1k 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
462 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 \begin{tabular*}{0....
7
votes
1answer
286 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. ...
2
votes
1answer
498 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
3k views

Divide an algorithm on two pages [duplicate]

\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
1k 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 ...
2
votes
1answer
2k 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: \renewcommand*{\section}[1]{%...