telegraphic / oxford-lyx-thesis-template Goto Github PK
View Code? Open in Web Editor NEWUniversity of Oxford LyX Thesis Template
Home Page: http://blog.thetelegraphic.com/2010/oxford-lyx-thesis-template/
University of Oxford LyX Thesis Template
Home Page: http://blog.thetelegraphic.com/2010/oxford-lyx-thesis-template/
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.
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'), type
I' 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
?
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
ociamthesis-lyx.layout
to C:\Users\<username>\AppData\Roaming\LyX<version>\layouts
.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! :-)
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.
@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:
\\.\pipe\lyxpipe
~/.lyx/lyxpipe
v15.0.1
) you need to manually change where LyZ looks for this pipe.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
.pref("extensions.lyz.lyxserver", "\\\\.\\pipe\\lyxpipe");
with the line pref("extensions.lyz.lyxserver", "~/.lyx/lyxpipe");
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.