{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
467 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
423 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
254 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
433 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
638 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
579 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
424 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
548 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
380 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
234 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
173 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
152 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
604 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
408 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
947 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
4k 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
183 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
228 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
567 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
381 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 ...
8
votes
2answers
2k 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
227 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
269 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
85 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 ...
5
votes
1answer
990 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
149 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. ...
4
votes
1answer
508 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 ...
4
votes
1answer
156 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
180 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 ...
2
votes
1answer
863 views

babel and \contentsname, how to add extra customization?

This is what I'm trying to do: \renewcommand{\contentsname}{ \vspace{-8mm} {\Huge Table of Contents}\vspace{-3mm} \rule{\linewidth}{0.5mm} \\[-4mm] } Using babel, I can get this code to work: ...
4
votes
2answers
377 views

How to change chapter font style in the middle of the Table of the Contents?

What I do have, is grouped frontmatter entries (chapter-like) in ToC, and the rest of the chapters have larger vertical space. What I want is to change the font style of the grouped part to, say, ...
3
votes
1answer
368 views

Dotted line between glossary description and page number

Is it possible to have the standard glossary entry, but with page numbers aligned to the right and a dotted line between the end of the description and the first page number?
3
votes
1answer
298 views

Displaying a really long chain of inequalities

I'm trying to enter a long chain of inequalities in math display mode. If I enter the expressions as I want them to, LyX will continue displaying them off the screen - so that they don't show up when ...
3
votes
1answer
279 views

Switch positions of startyear and endyear in moderntimeline

How can I switch in package moderntimeline the positions of startyear and endyear without breaking the layout? Would be nice to have the startyear below and the endyear on top. I'd like to simply ...
4
votes
2answers
482 views

Replace (change) “Chapter 1” to “Chapter ONE”

I am writing a lab report, and select report class provided by LyX. I use LyX 2.0.3 and MiKTeX 2.9. My question is, how to change the chapter number to display as text? eg: CHAPTER ONE not CHAPTER ...
1
vote
3answers
2k views

Section's heading in small caps

I am using TeXmaker and I am trying to format the section's title. I tried something I had found on the internet but it was clashing with another package. How can I set all section's heading to be ...
2
votes
1answer
3k views

How to change default theme title style (bold, color, margin) of title in the beginning of each slide

I am interested in having a local change to the default theme of beamer. I want every title in the beginning of a slide to be boldfaced, black (instead of purplish, black) with a horizontal line that ...
5
votes
1answer
664 views

Page count in LaTeX vs Word

My term paper has fairly strict formatting guidelines - double-spaced & 12pt font. I am currently on page 7 (when previewed in LaTeX). However, when I copy and paste into MS Word, I've hit the ...
1
vote
1answer
223 views

How to change the question number from just '1' to 'Question No. 1.' in the exam class?

I needed to type something like this: But wanted to change the 'numbering' to 'Question No. x.' from just 'x.' How should I go about doing that? An alternative solution is also welcome if what ...
8
votes
3answers
739 views

How do I make the \min and max bold?

Refering to this question How to make the table fit into the column? How should I make the \min and \max bold?
5
votes
3answers
266 views

Problems aligning on a decimal in a table with colored rows

I'm having a problem with making a "pretty" table The intent is to have alternating light background colors with black text for normal rows to facilitate reading across, with the header having a blue ...
5
votes
1answer
1k 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 ...
4
votes
3answers
251 views

How can I draw a table where the upper left corner is missing? (Pic)

Is it possible to draw a table like the one in the attached picture? I've read documentation on the tabular environment but nothing really describes this well. The shading would be nice but the ...