GeneralWrong right margin

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
meklenborg
Posts: 18
Joined: Tue Mar 20, 2007 7:42 pm

Wrong right margin

Post by meklenborg »

Hi

I've written an article, but the right margin is remarquably wider than the left. I've tried to exclude the Xyling document class, but that didn't have any effect. What should I do?

Here's my preamble:


\documentclass[12pt,b5paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[cyr]{aeguill}
\usepackage{tipa}
\usepackage {linguex}
\usepackage{xyling}
\usepackage {chicago}
\usepackage{graphicx}



\renewcommand{\baselinestretch}{1.5}
% \strikeout{text}: prints a struck-out version of #1
\newlength{\howlong}
\newcommand{\strikeout}[1]{
\settowidth{\howlong}{#1}%
#1\unitlength0.5ex%
\begin{picture}(0,0)
\put(0,1){\line(-1,0){\howlong\divide\unitlength}}
\end{picture}%
}

Any suggestions?

Christine

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Wrong right margin

Post by localghost »

Paper and page dimensions can be set with geometry. Have a look at its documentation.


Best regards
Thorsten¹
meklenborg
Posts: 18
Joined: Tue Mar 20, 2007 7:42 pm

Re: Wrong right margin

Post by meklenborg »

A very good tip, but it didn't work. I tried the centering command as well as defining the margins, but with no luck.

C
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Wrong right margin

Post by Stefan Kottwitz »

Hi Christine,

perhaps provide a minimal working example (compilable) showing the margin problem. I've tested this preamble and got equal left and right margins, the problem could be caused by other code that you didn't post or by external tools used like driver or converter.

Stefan
LaTeX.org admin
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Wrong right margin

Post by Juanjo »

Christine,

Although you don't ask anything about your \strikeout command, perhaps you may find useful the following code:

Code: Select all

\newcommand{\Strikeout}[1]{\settowidth{\howlong}{#1}\makebox[0pt][l]{\rule[0.5ex]{\howlong}{0.4pt}}#1}
Add it to the preamble and then compare

Code: Select all

The \Strikeout{quick brown fox} jumps over the \Strikeout{lazy dog}

The \strikeout{quick brown fox} jumps over the \strikeout{lazy dog}
Your macro leaves an undesirable space before the struck text.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Post Reply