Text Formattinghow to find cause of inability to double space

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jamaas
Posts: 6
Joined: Tue Sep 25, 2012 3:51 pm

how to find cause of inability to double space

Post by jamaas »

I'm writing a manuscript for a journal called Oxford Biostatistics and they supply a class file. However when I use this file I'm unable to successfully change any of the formatting to double spacing, to print a copy for editing by co-authors. Could someone tell me how to find the cause of the problem in the class file, or better still how to temporarily overcome it so I can temporarily double space some of the text?

Thanks
J

Ubuntu 12.10
current texlive
bio.cls

attempting using

Code: Select all

\setspace

\doublespace

\begin{document}

lots of text

\end{document}
Last edited by cgnieder on Fri Jan 11, 2013 6:17 pm, edited 1 time in total.

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

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

how to find cause of inability to double space

Post by Stefan Kottwitz »

Perhaps post a real piece of code, which is compilable (Infominimal working example) and post the class file as attachment. bio.cls is not a standard class.

I guess instead of \setspace you mean \usepackage{setspace}.

Except that, the code above is correct. Just post a short example which shows the inability, so we don't need guesswork.

Stefan
LaTeX.org admin
jamaas
Posts: 6
Joined: Tue Sep 25, 2012 3:51 pm

how to find cause of inability to double space

Post by jamaas »

Thank you, some of this new to me but will do my best. I will attempt to attach bio.cls file.

Thanks
J

Example latex code

Code: Select all

\RequirePackage{fix-cm}
\documentclass[a4paper,english]{bio}
\usepackage{setspace}
\usepackage{fontspec}
\usepackage{array}
\usepackage{pdflscape}
\usepackage{changepage}
\usepackage{polyglossia}

\doublespace

\begin{document}


Lets see if we can type some material and double space it or is there something in the bio class file that is forcing it to be single spaced.  This is really annoying.  I think it must be something in the class file that is forcing it to do this?

\end{document}
Attachments
bio.cls
(33.5 KiB) Downloaded 376 times
Last edited by Stefan Kottwitz on Fri Jan 11, 2013 6:20 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

how to find cause of inability to double space

Post by Stefan Kottwitz »

I found the solution in the class file source. You could simply use the oupdraft option instead of setspace and \doublespacing:

Code: Select all

\documentclass[a4paper,english,oupdraft]{bio}
Stefan
LaTeX.org admin
jamaas
Posts: 6
Joined: Tue Sep 25, 2012 3:51 pm

Re: how to find cause of inability to double space

Post by jamaas »

Well spotted, thanks a bunch. Is it common for many class files to have "draft" option?
Big help, thanks again!

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

how to find cause of inability to double space

Post by Stefan Kottwitz »

Yes, it's common, for example the standard classes, such as article, book and report, support the draft option, for visualizing bad line breaks, by

Code: Select all

\DeclareOption{draft}{\setlength\overfullrule{5pt}}
The bio class does the same. It adds its own oupdraft option, for a different purpose, here double spacing.

draft (and final) options are also supported by packages, such as
  • graphicx: with draft, images are not printed
  • hyperref: with draft, all hypertext features are turned off
  • listings: with draft, no printing of external listings, but showing captions and generating labels
Stefan
LaTeX.org admin
Post Reply