Some problems and fixes

158 views
Skip to first unread message

brm...@gmail.com

unread,
May 11, 2012, 6:40:17 PM5/11/12
to ucsd-...@googlegroups.com
This is probably an old/familiar story, but I just had my preliminary meeting, and was told to fix a few things.

Fix I did, and here are the solutions/revisions to tex:
  1. "Vita and Publications" should just be "Vita" in the TOC (vita includes publications).  

    The fix (in ucsd.cls):

    \def\vitapage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
         \else \newpage \fi\pagestyle{preliminary}
         \phantomsection
         \addcontentsline{toc}{frontmatter}{\protect\numberline{}Vita}}

  2. Font of hyperref/urls must match main body text.  

    The fix (in ucsd.cls):

    \usepackage{url}
    \urlstyle{same}

  3. Captions must be uniformly centered or justified.  The current template centers single-line captions, and justifies multi-line.  (I think this looks nicer, but I digress..) Since centered multi-line captions look awful, I opted to justify all captions.

    The fix (in ucsd.cls):

    \usepackage{caption}
    \captionsetup{justification=justified, singlelinecheck=false}

  4. Bibliography items must be single-spaced, with an extra space after each item.  The only consistent way that I've been able to pull this off is to put a "\ssp" in the main document before the bib, eg, in thesis.tex:

    \ssp
    \bibliography{refs}

    This is clearly non-ideal, so someone with more texpertise should be able to hack this into the proper place in the template.

--
Brian

amicitas

unread,
Jun 23, 2012, 12:10:08 AM6/23/12
to ucsd-...@googlegroups.com
Brian,

Thank you for posting your fixes.  If you would be willing to add in these changes, e-mail me and and I will add you to the project.

A couple of notes:

2.  Is is possible to do this using preferences in hyperref instead of including a new package?  If so that would be a preferable solution.

3.  This is something that definitely needs to be fixed.  It looks like there is a new package "subcaption" which has replaced "subfigure" and "subfig" and is compatable with the "caption" package.  We should check compatibility and add notes to the template and wiki before recommending the use of the caption package.  

4.  This is what I did in my thesis as well.  We need to add a note to the template about this.   It is possible to create a better solution, which I think I did in the code_cleanup branch, but until someone has time/inclination to do a major code clean up, a comment in the template is the way to go.


Novimir
amic...@gmail.com

Nathaniel Smith

unread,
Jun 23, 2012, 9:26:30 AM6/23/12
to ucsd-...@googlegroups.com
On Sat, Jun 23, 2012 at 5:10 AM, amicitas <amic...@gmail.com> wrote:
> On Friday, May 11, 2012 6:40:17 PM UTC-4, brm...@gmail.com wrote:
>>
>> This is probably an old/familiar story, but I just had my preliminary
>> meeting, and was told to fix a few things.
>>
>> Fix I did, and here are the solutions/revisions to tex:
>>
>> "Vita and Publications" should just be "Vita" in the TOC (vita includes
>> publications).
>>
>> The fix (in ucsd.cls):
>>
>> \def\vitapage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
>>      \else \newpage \fi\pagestyle{preliminary}
>>      \phantomsection
>>      \addcontentsline{toc}{frontmatter}{\protect\numberline{}Vita}}
>>
>> Font of hyperref/urls must match main body text.
>>
>> The fix (in ucsd.cls):
>>
>> \usepackage{url}
>> \urlstyle{same}

Does this work? IIRC when I tried this I had to put the \urlstyle
after \begin{document} (as noted here[1]).

If that's correct then \AtBeginDocument{\urlstyle{same}} might work --
I didn't know about \AtBeginDocument when I wrote that email.

>> Captions must be uniformly centered or justified.  The current template
>> centers single-line captions, and justifies multi-line.  (I think this looks
>> nicer, but I digress..) Since centered multi-line captions look awful, I
>> opted to justify all captions.
>>
>> The fix (in ucsd.cls):
>>
>> \usepackage{caption}
>> \captionsetup{justification=justified, singlelinecheck=false}

Another way to accomplish this is in the patch in [1], which I guess
never got committed. That version doesn't need any extra packages.

>> Bibliography items must be single-spaced, with an extra space after each
>> item.  The only consistent way that I've been able to pull this off is to
>> put a "\ssp" in the main document before the bib, eg, in thesis.tex:
>>
>> \ssp
>> \bibliography{refs}
>>
>> This is clearly non-ideal, so someone with more texpertise should be able
>> to hack this into the proper place in the template.

Weird, if you look at the definition of \thebibliography in ucsd.cls,
it already has a call to \ssp (with comment "WBB re OGSR style,
6.11.97"). It may be being overridden by some other package, like
chapterbib or your favorite \bibliographystyle command.

-- Nathaniel

[1] https://groups.google.com/forum/?fromgroups#!topic/ucsd-thesis/OQggJDDnoR4

msmi...@gmail.com

unread,
Sep 1, 2012, 2:30:02 PM9/1/12
to ucsd-...@googlegroups.com, brm...@gmail.com
Thanks so much for putting the template together, and for these corrections! These were some of the same issues I ran into too.

My captions don't seem to respond to the fix you suggest. It's as though I didn't do anything. I'm not sure how to apply this patch:
...so I'm not sure how to fix this aside from shortening all of my caption titles. Any idea what's going on?

The other three worked perfectly. Thank you!

msmi...@gmail.com

unread,
Sep 1, 2012, 2:52:37 PM9/1/12
to ucsd-...@googlegroups.com, brm...@gmail.com, msmi...@gmail.com
Ah, quick addition: apparently if I stick the caption code:

\usepackage{caption}
\captionsetup{justification=justified, singlelinecheck=false}

...in the .tex file, it works fine. I'm not sure why the URL font one works just fine in the .cls file but this doesn't, but there you go!
Reply all
Reply to author
Forward
0 new messages