1,467 reputation
916
bio website iit.edu/~kbloom1
location Chicago, IL
age 31
visits member for 4 years, 1 month
seen Nov 10 '13 at 23:39
A PhD student in Computer Science, working on natural language processing.

Jan
10
comment Prevent a paragraph break after a section heading
So I went with \RequirePackage[loadonly]{titlesec} ... and further down \titleclass{\subsection}[0]{straight} \titleformat{\subsection}[runin]{\normalfont\bfseries}{\thesubsection\space\spac‌​e}{0pt}{}[.] \titlespacing{\subsection}{0pt}{0pt}{1em}, and I left the other headings untouched. (So all titlesec knows about is subsections. Chapters and sections, which appear in the TOC, don't need any changes). It's hacky, but if you don't want hacky, don't write a thesis (or at least use memoir).
Jan
10
comment Prevent a paragraph break after a section heading
@Alan, I'm getting there now, but it involves rewriting all of my sectioning and table of contents stuff to do it this way. Is there another way that I can accomplish this without having to rewrite everything?
Jan
10
comment Prevent a paragraph break after a section heading
OK. I need \RequirePackage[loadonly]{titlesec}.
Jan
10
comment Prevent a paragraph break after a section heading
This isn't working for me. I'm getting Undefined control sequence. \section \ttl@extract\section when I \RequirePackage{titlesec}.
Jun
28
comment Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?
How about this? \newcommand{\doConvert}[2]{\immediate\write18{mkdir -p downsampled; convert #1 -resample % 300x300 -resize #2 downsampled/#1}} \newcommand{\imgRs}[4]{\doConvert{#1.#2}{#3x#4}% \includegraphics[width=#3, height=#4, type=#2, ext=.#2.rs, read=.#2.rs]{downsampled/#1}% }
Jun
28
comment Can pdflatex (or any tex package) automatically rescale included images which have been reduced in size?
The degrade.sh script can probably be edited to not hard code the .jpg extension, though then you're rewriting anyway. Why not take degrade's idea of using a separate directory for the downsampled images (instead of changing the name), and hack that into finrod's solution? Add a \write18{mkdir -p downsampled} to the \doConvert command to ensure that the directory is created if it doesn't already exist.