{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
129 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
120 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
192 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
163 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
170 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
75 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
127 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
117 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
149 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
92 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
147 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
43 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 ...
7
votes
1answer
182 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
69 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
200 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
134 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
176 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
281 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: ...
5
votes
1answer
72 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
310 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 ...
10
votes
3answers
599 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
198 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 ...
0
votes
0answers
40 views

Adding right aligned text in a paragraph [duplicate]

Possible Duplicate: Bump right-aligned text to next line if no room How to add a some text in a paragraph which comes last line of the paragraph as right aligned. When the last line is ...
1
vote
1answer
52 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
44 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
92 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
112 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
104 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
391 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
97 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
91 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
80 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
222 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
201 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
57 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
88 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
218 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 ...
0
votes
1answer
183 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 ...
4
votes
2answers
492 views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
6
votes
2answers
88 views

Make \translate'd string uppercase

I'd like to typeset German weekday names in uppercase using the translator package but I can't get it working: \documentclass[ngerman]{article} \usepackage{babel} \usepackage{translator} ...
6
votes
1answer
172 views

Compare numbers with comma as decimal points

I want to check whether a number \a (read from a file) is smaller than zero using ifthenelse: \ifthenelse{\a<5}{smaller}{not smaller} This works fine when a is in the format -1. In the file ...
1
vote
1answer
52 views

How to produce annotated text, where an original text is contrasted with my comments?

Assume someone sends me a (plain text or LaTeX source) text document. I'm in the position to comment on the text and suggest improvements. I'd like to produce a LaTeX document featuring the original ...
3
votes
1answer
240 views

Number of lines in double spacing (compared to Word)

I am a newbie to LaTeX. I noticed that my document is almost a page longer in Word compared to LaTeX. (~7.25 in latex, ~8.25 in Word). This seems to be because my Word document has 23 lines per page, ...
6
votes
1answer
101 views

Chapter page formatting

I'm using MiKTeX and when I use \chapter command, it starts a new page. I was wondering how to not start a new page. My next concern is how can I align the text \chapter{*} where * is the text. ...
0
votes
0answers
52 views

citation just included in round brackets when site number included [closed]

I formatted my document in a specific way. The citiation should always look like that (Author, Year[, page number]) and then the appendant reference should be listed like that Author (Year). ...
4
votes
1answer
141 views

Editing .bst file to modify printing of publisher and address information

I'm lost in some bst hell. Basically I'm trying to get Springer's spbasic.bst file to work. I'm almost there, but there are few annoying issues. First, instead of getting Address: Publisher, I get ...
1
vote
0answers
140 views

Auto Formatting .tex file like Eclipse Format source code

Is there a way to format the Latex source to make it more readable as you would on Eclipse by right clicking the source and clicking on 'Format Source' ?
2
votes
0answers
96 views

Pgfplotstable converting zeros to — in a knitr inline table

how do I change each 0.0 to -- without having to reference each as string type or making the whole table string type? The actual table is quite long and it would take too long to do it manually. For ...
8
votes
1answer
110 views

How can I make a custom theorem for a definition?

Looking at the wikibooks article on theorems has me wondering... I'd like to do something, if possible, similar to the default "proof" theorem style, whereby I can add a custom name to each theorem as ...
0
votes
0answers
157 views

Is this a good format for a thesis? [closed]

First of all, English is not my native idiom, so apologies in advance. INTRODUCTION Maybe this is not the proper place, but i want some professional opinions on my proyect. And of course if it help ...

1 3 4 5 6 7 19