Code Monkey home page Code Monkey logo

oxford-lyx-thesis-template's People

Contributors

telegraphic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oxford-lyx-thesis-template's Issues

Blank first page

First page of generated PDF is blank.

This is something to do with the \baselineskip=18pt plus1pt line in the document setup. It only affects some TeX distributions.

\maketitle generates 'Undefined control sequence error'

Leading a lyx document with a title (write text, highlight, select title from markup dropdown selection) causes multiple Undefined control sequence errors.

The relevant log section reads:

`! Undefined control sequence.'
'\maketitle ...r } {\large \vspace *{40mm} {\crest '
' \par } \vspace *{25mm}} {{...'
'l.38 \maketitle'

'The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., \hobx'), typeI' and the correct spelling (e.g., 'I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.`

Is there something wrong with your maketitle definition in the .cls?

Ubuntu/Linux Installation Instructions

On Linux (Ubuntu at least) I did the following:

cd /usr/share/texmf/tex/latex

sudo mkdir ndb // My initials, just want some new dir for neatness

sudo cp ~/Documents/dphil/telegraphic-Oxford-LyX-Thesis-Template/files\ to\ copy/ociamthesis.cls ndb/

sudo texhash

cp ~/Documents/dphil/telegraphic-Oxford-LyX-Thesis-Template/files\ to\ copy/ociamthesis-lyx.layout ~/.lyx/layouts/

Then in lyx:

Tools -> Reconfigure

Windows Installation Instructions

  1. Copy ociamthesis-lyx.layout to C:\Users\<username>\AppData\Roaming\LyX<version>\layouts.
  2. Copy ociamthesis-lyx.cls to C:\Users\<username>\AppData\Roaming\MiKTeX\<version>\tex\latex. You may need to create this directory manually, though the parent tex directory should already be present.

Run Start -> MikTex -> Settings (or on Windows 8: <Press Windows Key>, Type 'settings', choose the non-admin Settings item with MikTex icon) then click Refresh FNDB.

Now load Lyx and run: Tools -> Reconfigure. Once complete you'll receive a notification to restart Lyx. Do so then load your thesis.lyx and go to Document -> Settings. In Document Class (item in left sidebar list) In the Document class dropdown choose ociamthesis-lyx (items are in alphabetical order).

Boom baby! :-)

Litmus test for successful installation

How do we identify that the template is being used by Lyx successfully?

Some kind of 'you know it's worked if...' would be v helpful, both as answer to this and in the README.

Use with Zotero + LyZ

@danny - I've prepared the following cross-platform instructions for using Zotero and LyZ for simple bibliography management through firefox and importing into LyX. Hope you'll add the info to the README or some other doc. Feel free to bullet-point the final steps, I have to go to work now. ~ Dave

There's an excellent Firefox extension Zotero for bibliography management. Simply google a reference by title, click on (almost) any publisher site, or a mainstream consumer site like Amazon. Then click the document/book/etc. icon that appears on the right hand side of the address bar, you'll then see a success popup in the browser lower right corner indicating successful grab of the reference.

Trying to export in BibTeX format from Zotero generates a .bib which is incompatible with LyX due to e.g. non-encoding of URLs and single vs double dashes. To overcome this you can install the LyZ Firefox extension.

To use LyZ, load Lyx -> Tools -> Preferences -> Paths. Modify LyXServer pipe field as described below:

  • Windows: enter value \\.\pipe\lyxpipe
  • Unix (Linux/Mac OS): enter value ~/.lyx/lyxpipe
    • Using LyZ in a recent version of Firefox (I'm using v15.0.1) you need to manually change where LyZ looks for this pipe.
    • Run find ~ -name 'lyz.js' | grep defaults in a terminal, this should spew out a path like: /home/ndb/.mozilla/firefox/44z3n92y.default/extensions/[email protected]/defaults/preferences/lyz.js.
    • Now open this location (a JavaScript file) in any text editor.
    • Replace the line pref("extensions.lyz.lyxserver", "\\\\.\\pipe\\lyxpipe"); with the line pref("extensions.lyz.lyxserver", "~/.lyx/lyxpipe");
    • Save and close the text editor.
    • Restart firefox (exit then launch again).

After changing the LyXServer pipe field in LyX's preferences, click Apply then Save. Close LyX and re-open your document since LyZ needs an open document to work its magic.

Next go to Firefox, run Tools -> Zotero. You'll see your references in a central list. You can safely delete the Zotero Quick Starter entry. Now left click on any of your references, press Ctrl + a to select all (or Cmd + a on Mac), then right-click -> Cite in LyX. Choose to save to /path/to/ociam/references/bao.bib.

LyZ will now insert a references link to this created .bib in your open LyX document; you can delete this. Now left-click the provided BibTeX Generated Bibliography link before Appendix in the thesis template. Select the references/bao database, change Content: to all references if you wish non-cited items to be imported too. Now click Rescan, and finally OK or Close.

Now save your document. If you do View -> View [PDF (pdflatex)] or press Ctrl + r the generated PDF should list the Zotero-added references.

When you want to update your list, follow the above steps again except for installation of course.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.