Giter VIP home page Giter VIP logo

thesisdown's Introduction

thesisdown

This project was inspired by the bookdown package and is an updated version of my Senior Thesis template in the reedtemplates package here. It was originally designed to only work with the Reed College LaTeX template, but has since been adapted to work with many different institutions by many different individuals. Check out the Customizing thesisdown to your institution section below for examples.

Currently, the PDF and gitbook versions are fully-functional. The word and epub versions are developmental, have no templates behind them, and are essentially calls to the appropriate functions in bookdown.

If you are new to working with bookdown/rmarkdown, please read over the documentation available in the gitbook template at https://ismayc.github.io/thesisdown_book.

The current output for the four versions is here:

Under the hood, the Reed College LaTeX template is used to ensure that documents conform precisely to submission standards. At the same time, composition and formatting can be done using lightweight markdown syntax, and R code and its output can be seamlessly included using rmarkdown.

Customizing thesisdown to your institution

In an ideal world, this package would support a variety of different LaTeX templates from a wide range of institutions and we’d love to get it there at some point. Until that time, realize that this was designed to only work with the Reed College LaTeX template but others have adapted it to work with their institutions. Here are some that have customized it to fit their needs. It is recommended you review how they changed the files by comparing their repositories to this one and then make tweaks to yours as needed. Feel free to file an issue on this repo if you have questions/troubles.

Have you created a thesisdown template for your institution and would like to have it included here? Make a PR similar to the commit done to include jayhawkdown. I’ll review it and merge it in. Let’s keep the list going!

College/University Repository Based on
American University SimonHeuberger/eagledown benmarwick/huskydown
Boğaziçi University, the Institute of Graduate Studies in Social Sciences serhatcevikel/boundown ismayc/thesisdown
Brock University brentthorne/brockdown zkamvar/beaverdown
Coventry University tomislavmedak/coventrydown ulyngs/oxforddown
Drexel University tbradley1013/dragondown ismayc/thesisdown
Duke University mine-cetinkaya-rundel/thesisdowndss ismayc/thesisdown
École Doctorale de Mathématiques Hadamard abichat/hadamardown ismayc/thesisdown
Graduate Institute of International and Development Studies jhollway/iheiddown ulyngs/oxforddown
Heidelberg University, Faculty of Biosciences nkurzaw/heididown phister/huwiwidown
Humboldt University of Berlin phister/huwiwidown ismayc/thesisdown
Kansas State University emraher/wildcatdown benmarwick/huskydown
Macquarie University thomas-fung/thesisdownmq mine-cetinkaya-rundel/thesisdowndss
Massachusetts Institute of Technology ratatstats/manusdown ismayc/thesisdown
McMaster University paezha/macdown ismayc/thesisdown
Monash University masiraji/monashthesisdown ismayc/thesisdown
Oregon State University zkamvar/beaverdown ismayc/thesisdown
Oxford University davidplans/oxdown ismayc/thesisdown
Queen's University eugenesit/gaelsdown ismayc/thesisdown
Smith College SmithCollege-SDS/pioneerdown ismayc/thesisdown
Southampton University dr-harper/sotonthesis ismayc/thesisdown
Stanford University mhtess/treedown ismayc/thesisdown
TU Wien ben-schwen/robotdown ismayc/thesisdown
Universidade Federal de Santa Catarina lfpdroubi/ufscdown ismayc/thesisdown
Universidade Federal do Ceará damarals/ufcdown ismayc/thesisdown
Universidade Federal do Rio de Janeiro COPPE-UFRJ/coppedown ismayc/thesisdown
Universiteit van Amsterdam lcreteig/amsterdown benmarwick/huskydown
University College London benyohaiphysics/thesisdownUCL ismayc/thesisdown
University of Arizona kelseygonzalez/beardown ismayc/thesisdown
University of Auckland d-scanzi/UOAdown ismayc/thesisdown
University of Bergen SaltyRydM/bergendown ismayc/thesisdown
University of Bristol mattlee821/bristolthesis ismayc/thesisdown
University of California, Davis ryanpeek/aggiedown DanOvando/gauchodown
University of California, Santa Barbara DanOvando/gauchodown benmarwick/huskydown
University of Florida ksauby/thesisdownufl ismayc/thesisdown
University of Freiburg vivekbhr/doctorRbite ismayc/thesisdown
University of Guelph sebsciarra/guelphdown ismayc/thesisdown
University of Kansas wjakethompson/jayhawkdown ismayc/thesisdown
University of Manchester juliov/uomthesisdown ismayc/thesisdown
University of Maryland, College Park ImNotaGit/thesisdown ismayc/thesisdown
University of Minnesota zief0002/gopherdown wjakethompson/jayhawkdown
University of New South Wales rensa/unswthesisdown ismayc/thesisdown
University of Salzburg irmingard/salzburgthesisdown ismayc/thesisdown
University of Toronto mattwarkentin/torontodown zkamvar/beaverdown
University of Washington benmarwick/huskydown ismayc/thesisdown
Université Paris-Saclay abichat/hadamardown ismayc/thesisdown
Youngstown State University gjkerns/penguindown ismayc/thesisdown

Using thesisdown from Chester’s GitHub

Special thanks to Ben Marwick for helping to add a lot more clarity to the directions below from the README of his spin-off huskydown package.

Using {thesisdown} has some prerequisites which are described below. To compile PDF documents using R, you are going to need to have LaTeX installed. By far the easiest way to install LaTeX on any platform is with the tinytex R package:

install.packages(c('tinytex', 'rmarkdown'))
tinytex::install_tinytex()
# after restarting RStudio, confirm that you have LaTeX with
tinytex:::is_tinytex()

You may need to install a few extra LaTeX packages on your first attempt to knit as well. Here is one such example of how to do so:

tinytex::tlmgr_install("babel-portuges")

To use {thesisdown} from RStudio:

  1. Ensure that you have already installed LaTeX and the fonts described above, and are using the latest version of RStudio. You can use thesisdown without RStudio. For example, you can write the Rmd files in your favorite text editor (e.g. Atom, Notepad++). But RStudio is probably the easiest tool for writing both R code and text in your thesis. It also provides a nice way to build your thesis while editing. We’ll proceed assuming that you have decided to use the RStudio workflow.

  2. Install the {bookdown} and {thesisdown} packages. Note that {thesisdown} is not available on CRAN at the moment and that’s why install.packages("thesisdown") won’t work. Use remotes::install_github() as shown below instead to install the package.

    if (!require("remotes")) 
      install.packages("remotes", repos = "https://cran.rstudio.org")
    remotes::install_github("rstudio/bookdown")
    remotes::install_github("ismayc/thesisdown")

          Note that you may need to restart RStudio at this point for the following dialog to show up.

  1. Get started with the {thesisdown} template. There are two options for doing so.
  • 3a) RECOMMENDED Create a new RStudio project with a {thesisdown} template.

    In RStudio, click on File > New Project > New Directory. Then select Thesis Project using thesisdown from the dropdown that will look something like the image below. You’ll see the graduation cap as the icon on the left for the appropriate project type.

    Next, give your project a name and specify where you’d like the files to appear. In the screenshot below, the project name is my_thesis and it will appear as a new folder on my Desktop.

    If you got this far, skip over step 3b which is the older version of getting the template. It might force you to change some of the directories to get knitting to work and has some other limitations as well. That’s why step 3a is recommended.

  • 3b) Use the New R Markdown dialog to select Thesis:

    Note that this will currently only Knit if you name the directory index as shown above. This guarantees that index.html is generated correctly for the Gitbook version of the thesis.

  1. After choosing which type of output you’d like in the YAML at the top of index.Rmd, Knit the index.Rmd file to get the book in PDF or HTML formats.

Day-to-day writing of your thesis

You need to edit the individual chapter R Markdown files to write your thesis. It’s recommended that you version control your thesis using GitHub if possible. RStudio can also easily sync up with GitHub to make the process easier. While writing, you should git commit your work frequently, after every major activity on your thesis. For example, every few paragraphs or section of text, and after major step of analysis development. You should git push at the end of each work session before you leave your computer or change tasks. For a gentle, novice-friendly guide to getting starting with using Git with R and RStudio, see https://happygitwithr.com/.

Rendering

To render your thesis into a PDF, open index.Rmd in RStudio and then click the “knit” button. To change the output formats between PDF, gitbook and Word, look at the output: field in index.Rmd and comment-out the formats you don’t want.

The PDF file of your thesis will be deposited in the _book/ directory, by default.

Components

The following components are ones you should edit to customize your thesis:

_bookdown.yml

This is the main configuration file for your thesis. You can change the name of your outputted file here for your thesis and other options about your thesis here.

index.Rmd

This file contains all the meta information that goes at the beginning of your document. You’ll need to edit the top portion of this file (the YAML) to put your name on the first page, the title of your thesis, etc. Note that you need to have at least one chapter start in the index.Rmd file for the build to work. For the template, this is done with # Introduction in the example from the template.

01-chap1.Rmd, 02-chap2.Rmd, etc.

These are the Rmd files for each chapter in your dissertation. Write your thesis in these. If you’re writing in RStudio, you may find the wordcount addin useful for getting word counts and readability statistics in R Markdown documents.

bib/

Store your bibliography (as bibtex files) here. We recommend using the citr addin and Zotero to efficiently manage and insert citations.

csl/

Specific style files for bibliographies should be stored here. A good source for citation styles is https://github.com/citation-style-language/styles#readme.

figure/ and data/

Store your figures and data here and reference them in your R Markdown files. See the bookdown book for details on cross-referencing items using R Markdown.

thesisdown's People

Contributors

abichat avatar ben-schwen avatar eugenesit avatar imnotagit avatar ismayc avatar jhollway avatar juliov avatar keurcien avatar lcreteig avatar masiraji avatar mattlee821 avatar mattwarkentin avatar mavogel avatar mmahmoudian avatar mralbu avatar nicksolomon avatar nkurzaw avatar pcastellanoescuder avatar phinguyen44 avatar ruaridhw avatar saltyrydm avatar samasaur1 avatar sebsciarra avatar serhatcevikel avatar shirdekel avatar simonpcouch avatar tbradley1013 avatar thomas-fung avatar tomislavmedak avatar trashbirdecology 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

thesisdown's Issues

Consider picture as a table

Hi it's me again !
I have some table I retrieved making a screenshot.
So I would like to know if there is a way to directly include it as a table and not like a figure.
Thanks,
Thomas

Help formatting thesis following Auburn University template

Hello,

I'm excited about the possibility of using the bookdown and thesisdown packages to create my dissertation. However, I'm very new to LaTeX, and really have no idea what I'm doing.

My university has some .tex and .sty files that I think I can eventually get to work with my content. They are available in a zip file here: http://graduate.auburn.edu/current-students/etd-samples/

What I'm trying to do is build a very basic version of my dissertation using thesisdown and the Auburn template files to send to my grad school administrators to make sure the formatting is correct before I devote myself to writing the complete version in thesisdown.

Using the zip file provided by Auburn, I opened the ausample.tex file in RStudio and tried to knit it to a pdf - and I got errors about it not finding packages.

I'm hoping to write my content in .rmd files then build them into a book similar to the thesisdown example. I'm wondering if you would be able to provide any insights as to how likely it is I'll be able to use what Auburn provides with the bookdown/thesisdown packages to properly format my dissertation.

Thanks!

How to knit abstract also.

Hi,
I have a question, that I can not figure out by myself.
How can I force the thesis down to knit also the abstract code when I use pdf version? In gitbook it knits abstract but for pdf there is this expression r if(knitr:::is_latex_output()) paste(readLines("00-abstract.Rmd"), collapse = ' ') in YAML preamble that I do not know how to change.
Thanks beforehand.

skeleton.RMD line number references

The various references to line numbers throughout the skeleton.rmd are incorrect.

Suggest referencing the specific arguments rather than to the line numbers.

empty verbatim environment

Tracked down the error after looking at the line # in thesis.tex instead of thesis.Rmd (face palm emoji)

[pandoc warning] --chapters is deprecated. Use --top-level-division=chapter instead.
! FancyVerb Error:
Empty verbatim environment
\FV@Error ... {FancyVerb Error:
\space \space #1}
Error: Failed to compile thesis.tex. See thesis.log for more info.
Execution halted

thesis.log - look @ theses lines:

\begin{verbatim}
Loading required package: gdata
  \end{verbatim}

  \begin{verbatim}
  gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
  \end{verbatim}

  \begin{verbatim}
  \end{verbatim}

  \begin{verbatim}
  gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
  \end{verbatim}

Hotfix: remove "gdata" package dependency and recompile

Fixed: closing issue

citation and text styling within fig.cap

Hi @ismayc,

I have an issue when I insert citation and/or text styling within a fig.cap.
They are not recognized and they are displayed as basic text when I ask for pdf output (it works fine for HTML and Word output).

I saw your issue in boodown repo issues #203 but even after having re-install my latex distribution it still doesn't work for me (my OS is Linux CentOS 7).

Thanks again for your package and I attach a screenshot to explain my issue if it wasn't clear.

example

Pandoc cite-proc reference not found after updating Rstudio

I recently upgraded to the new version of Rstudio (which I think has a newer version of pandoc in it) and knitting either html or pdf throws the
pandoc-citeproc reference not found for all of my references.

I tried a minimal example using only bookdown and this worked no problem.

Has anyone else encountered this issue?
I've tried reinstalling everything and the problem persists.

nevermind. problem in my yaml

pandoc: unrecognized option `--top-level-division=chapter'

Hi!

When I change the output to thesis_pdf: default, I get an error

/usr/lib/rstudio-server/bin/pandoc/pandoc +RTS -K512m -RTS thesis.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output thesis.tex --table-of-contents --toc-depth 3 --template template.tex --number-sections --highlight-style tango --latex-engine pdflatex --top-level-division=chapter --variable tables=yes --standalone --filter /usr/lib/rstudio-server/bin/pandoc/pandoc-citeproc
output file: thesis.knit.md

pandoc: unrecognized option `--top-level-division=chapter'
Try pandoc --help for more information.
Error: pandoc document conversion failed with error 2
Please delete thesis.Rmd after you finish debugging the error.
Execution halted

But the gitbook output works :) Any suggestions?

Here's my session info:

sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 17.04

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.7.0
LAPACK: /usr/lib/lapack/liblapack.so.3.7.0

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] thesisdown_0.0.2 knitr_1.17 bookdown_0.5.11 ggplot2_2.2.1 dplyr_0.7.4 devtools_1.13.4

loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 bindr_0.1 magrittr_1.5 munsell_0.4.3 colorspace_1.3-2 R6_2.2.2
[7] rlang_0.1.2 stringr_1.2.0 plyr_1.8.4 tools_3.4.2 grid_3.4.2 gtable_0.2.0
[13] withr_2.1.1 htmltools_0.3.6 rprojroot_1.3-1 yaml_2.1.16 lazyeval_0.2.0 assertthat_0.2.0
[19] digest_0.6.13 tibble_1.3.4 bindrcpp_0.2 rsconnect_0.8.5 evaluate_0.10.1 memoise_1.1.0
[25] glue_1.1.1 rmarkdown_1.8 stringi_1.1.5 compiler_3.4.2 backports_1.1.2 scales_0.5.0
[31] pkgconfig_2.0.1

Putting everything together

Hello! I am sorry, but I could not understand how to put everything together into a .pdf file after constructing each chapter separately!

Why does it only knit when folder is named index?

Hi,
I'm looking forwards using your package. Now I'm busy integrating it into my folder structure and would really prefer naming the folder text or something else. But as you point out in README.md line 35 it's necessary to name it index. I'd love to contribute to your package, so I though you could provide me some infos about this?

Front page

Not exactly an issue. Thanks for an awesome template, I'm using it for my master thesis in Biotechnology as I like latex and also have large amounts of data analysis in R. But how can I change the front page? I would like to have a more attractive one than pure text :) Thanks in advance.

Including non-R code and getting a reference

I have a coupe of code files, that I try to include into my thesis. Basically like a figure, with a caption and reference. I can include the code and it is shown, but does not get a caption etc.

```{r examplebash, engine = 'bash', eval = FALSE, code=readLines("examplebash.sh"), fig.cap="Example bash script"}
```

My question is, is there an easy way to do this? I could basically make screenshots and include them, but as I have a bit more than only 1 or 2 of them, I'd rather have that process kind of automated and less prone to errors. I don't necessarily need a new category - like "listing" - for it. Figure would be sufficient, although I'd be interested in how much efford it would be to achive it.

Could someone point me in the right direction of where my mistake is? Thank you.

Issue installn thesisdown R 3.6.2

Hi guys, I´m having this issue to install thesisdown:

"package 'dplyr' was built under R version 3.6.2"

I´ve tried downgrading dplyr, reinstalling several other packages but this error keeps coming up. Is there any way I can work this around to sucessfully install thesisdown? I´m super interested in this package since I really need to write my thesis.
I also noticed someone had a similarly issue when R 3.6 came out and the issue solved when moving to R 3.6.1, I tried downgrading R but it didn't work either.

Thanks,

Pandoc Error 97: Could not find data file /usr/share/pandoc/data/templates/template.tex

Hey guys! I am trying to render my thesis using thesisdown, but for some reason, pandoc cannot locate the template file?

This is the error i am getting:

/usr/bin/pandoc +RTS -K512m -RTS thesis.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output thesis.tex --table-of-contents --toc-depth 3 --template template.tex --number-sections --highlight-style tango --latex-engine pdflatex --top-level-division=chapter --variable tables=yes --standalone --filter /usr/bin/pandoc-citeproc 
pandoc: Could not find data file /usr/share/pandoc/data/templates/template.tex
Error: pandoc document conversion failed with error 97
Execution halted

This is my header:

---
author: 'Peder G. Landsverk'
date: 'May 2019'
title: 'My thesis'

csl: refstyle.csl

bibliography: lib.bib

output: 
   thesisdown::thesis_pdf:
header-includes:
   - \setlength{\parindent}{0em}
   - \setlength{\parskip}{1em}
acknowledgements: "..."
dedication: "..." 
---

Adapting thesisdown to a completely new .cls file

Hi Chester,
I got the Latex template used for submitting thesis at my Uni, and it is completely different to Reeds'. Normally when I checked some adaptations of thesisdown they keep the same format provided by Reed with some small changes. Here is the thing:

  • I´m using thesisdown because I know zero Latex.
  • Thinking that formatting thesisdown/bookdown would be easier I decided to follow this path avoiding Latex, but I´m in a point in which in order to set up the my Uni´s format I need some Latex understanding.

SO struggling with the code and packages (specially the ones related to the language, spanish in this case) I managed to render one Latex sample following the requiered format standards, but I lost some features that thesisdown had such as some functions created to pass YAML values to Latex.

I noticed that there are some definitions of those functions in the reedthesis.cls file between lines 193 an 213, and between lines 351 to the end. You designed the \author, \degrees, etc. that are values given in the skeleton.RMD that then pass to the .tex file.

Here is my thing: I copied those definitions into my .cls file, but it turns out the functions are added to the .tex file, the values are correctly passed, but nothing is rendered with the defined functions into the PDF file. Probably I'm missing something, but I would like to go through this pain only once, and contribute creating the format for my Uni.

I will really appreaciate your guidance,

Thanks,

Alfonso

How can I delete the automatic designation of the Chapters as "Chapter #" for the .pdf output

Hi,

first of all thank you very much for providing a template to write my thesis with bookdown.

I struggle with the automatic designation of the Chapters in the pdf output.
I managed to turn it of for knitting to gitbook by deleting the chapter section in the "_bookdown.yml" file.

I also managed to turn off the automatic designation of the chapters in the table of contents of the pdf file by deleting this part of the reedthesis.cls file:

\def@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{@Chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{@Chapapp\space\thechapter:\space#1}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
@topnewpage[@makechapterhead{#2}]%
\else
@makechapterhead{#2}%
@afterheading
\fi}

But somehow the Chapters begin with "Chapter #" and i don't know where to change that for the .pdf file

Can someone help me with this issue?

Chunks does not behave as one expects they should

High @ismayc
I have a problem with chunks. In my first chunk of index.Rmd (which than becomes thesis.Rmd) I have settled my knitr options like this
knitr::opts_chunk$set( fig.path = "figure/", echo = FALSE, out.width='\\textwidth',fig.height=6, fig.width=6 )
in order to have all other chunks to follow this predefined options, but unfortunately they don't.
How one can fix this behaviour?
Thanks beforehand.

Section numbers using number_sections

Hello,

I would like to have 4 levels of numbers for my sections (e.g. 1.2.3.4). I tried adding number_sections: true to output but it did not work. What is the correct way to supply this parameter?

Thank you

Bibliography in PDF but not gitbook

Hi,

Thanks for this great package! I've been having trouble with the bibliography: when I knit a PDF the citations appear as expected, although at the beginning of the References section the word "placeholder" shows up before the first reference even though I can't find it anywhere in the templates or any of my files. However when I knit as a gitbook all the citations appear as ??? and the References section is empty. Not sure what I'm doing wrong...

Thanks for your help!

Large Images not scaled

Hi there,

Thank you for your template, looks great. I encountered the issue that .png's and .jpg's files are no scaled and therefore just continued over the edge...

I solved the issue adding this line to your template:
\setkeys{Gin}{width=\linewidth}

Best regards

Strange include_graphics() behaviour

Hello,

Not sure if this could have anything to do with #7, but currently attempting to inserting a full page image with include_graphics().

I am able bring in the image when I scale it down to 65% using out.width="60%", out.height="60%", but anything above this it simply disappears when the document is knit to pdf. I have also experimented with this as both a .png and a .pdf to no effect.

The image is an A4 map, and my goal is to use as much of the available space within the margins as possible to display the map. Therefore I currently start a new page right before the include_graphics() chunk using \newpage.

As I understand it, image scaling with dpi argument should not matter, as it should be over-written by my out.width argument.

Not sure what to try next, but feeling like I might be missing a certain chunk argument or something similar to get the desired result?

Any general advice on how to get a splashy full page graphic here and there (ideally over the top of the page number for that page) but still with a figure caption that can be linked to would be most appreciated! I am working with huwiwidown for reference.

White pages between chapters

Dear Ismayc,

Firstly, thank you for creating this great spin-off of the bookdown package, I have very much enjoyed working in it. I am currently within the last days of formatting my master's thesis before submitting, however, I have trouble figuring out how to delete white pages generated if a previous chapter did not end on an odd page. Our thesis is in "paper format" and thus these white pages are undesirable in the body. Would it be possible to just limit a white page post title page? I presume \cleardoublepage or \RTcleardoublepage should be adjusted in the .cls, however due to limited time I do not have the luxury of getting more familiar with the syntax.

Thank you in advance!

Kind regards,

Bavo

Unavailable for newer versions of R?

> install.packages('thesisdown')
Warning in install.packages :
  package ‘thesisdown’ is not available (for R version 3.3.2)

Is there any chance that thesisdown can be updated for R 3.3.2 or support for it enabled?

List of Abbreviations

Hi,
How can I add List of Abbreviations/Nomenclature/Symbols to yams, or manually, preferably on preamble part?
Thanks beforehand

Customize colorlinks when toc = true

Hi again,

Don't know whether you're interested or not, but I thought it would be cool to be able to change the colorlinks options the way it can be done with bookdown, directly in the yaml header, since this can't be done with toc = true. Though, it can be done by slightly changing the template.tex, but I would understand if you think it's unnecessary, as people could just tweak the template.tex themselves. Yet if you're interested let me know.

Cheers !

Syntax highlighting

Currently highlighting colors are hardcoded in reedthesis.cls, it would be great to be able to use the knitr themes, though.

How update highlight version?

Questions:

  • How is possible to add a new language to highlight for the code snippets?
  • Which library is used under the hood? Maybe I can contribute then 😃

cannot open file 'index.Rmd'

When knitting the template on a fresh install I get the following:

Error in file(con, "r") : cannot open the connection
Calls: <Anonymous> ... mapply -> <Anonymous> -> readUTF8 -> readLines -> file
In addition: Warning message:
In file(con, "r") : cannot open file 'index.Rmd': No such file or directory
Execution halted

Removing index.Rmd from _bookdown.yml clears the issue :)

Thanks for this great package 😃

Failed to install package

Hi,

Even though I followed the instructions, I can't install thesisdown!

Here is what the console has to say:

2019-08-30 18_37_34-RStudio

Any suggestions?

I used thesisdown before, but at some point updated to R version 3.6. Could this be the reason?

Thanks in advance,

David

Deprecated argument

Hi,

Thanks for sharing your template, it is very neat.
Just to mention that the pandoc argument chapters is now deprecated and should be replaced with
pandoc_args = "--top-level-division=chapter". By the way, if you want to provide a French template, I can send my modified version to you. Otherwise I could share it on my Github and put your name in the references.

Cheers,

Keurcien

remove figure description from table of figure

Hi!
I am using your template and it is very nice.
However I have an issue with figures.
I use to put figure title and figure description using chunk label:
fig.cap=Fig title : Figure description.
My issue is that the whole description appears in within the table of figures.
Is there a way to only have figure title ?
Thanks

PS: Sorry for my poor english, I'm french ;)

Underscores not converted to italics in figure caption

I have not been able to use italics for Latin names in a figure caption when plotting within the r-chunk.

I have tried:

  • *Ulva*
  • _Ulva_

{r plot1, echo=true, fig.align='center', fig.cap="A plot with a scientific name like Ulva", message=FALSE, warning=FALSE, out.width="90%"}

Something similar was referred to here:
knitr#1334

Can Not Knit to PDF from Terminal

Hi, I am trying to use the terminal instead of RStudio's knit to build the PDF. I run this command to do it:

Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")'

Unfortunately, I got this error:

/usr/bin/pandoc +RTS -K512m -RTS thesis.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output thesis.tex --table-of-contents --toc-depth 2 --template /home/ismailsunni/R/x86_64-pc-linux-gnu-library/3.6/rmarkdown/rmd/latex/default-1.17.0.2.tex --number-sections --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' --variable 'compact-title:yes' --include-in-header /tmp/Rtmppe41Um/rmarkdown-str2c4377d9ac86.html --variable tables=yes --standalone --filter /usr/bin/pandoc-citeproc 
! Undefined control sequence.
l.1203 \backmatter

Error: Failed to compile thesis.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See thesis.log for more info.
Execution halted

It's strange because I can knit it from RStudio just fine.

Is there any special setting or command to knit to PDF from the terminal?

Thanks!

Installing thesisdown in R 3.6

Hi guys, I´m having this issue to install thesisdown:

"package 'dplyr' was built under R version 3.6.2"

I´ve tried downgrading dplyr, reinstalling several other packages but this error keeps coming up. Is there any way I can work this around to sucessfully install thesisdown? I´m super interested in this package since I really need to write my thesis.
I also noticed someone had a similarly issue when R 3.6 came out and the issue solved when moving to R 3.6.1, I tried downgrading R but it didn't work either.

Thanks,

No deletion of temporary thesis.Rmd files after knit is completed

Hello again @ismayc ,

I just wanted to start by saying thank you for reply so quickly to my previous comments!

I have now been able to knit the index.Rmd as a pdf successfully, however once it has completed the deletion of the temporary thesis.Rmd files associated with it does not occur. This means every time I want to re-knit I need to go and delete all of the thesis files that were created previously.

I do not see any warnings in the markdown now that I have updated to Pandoc >=2.0 as you suggested in issue #39 . The only message that appears is:

Please delete thesis.Rmd after you finish debugging the error.

I discovered this issue when returning to my own forked version of zkamvar's beaverdown called brockdown.

I have tried using rstudio/bookdown but the problem does not seem to be occurring. I worked my way back through thesisdown, beaverdown, and brockdown and they all have the same issue.

Any suggestions?

Thank you.

Knit error of initial document

Hello,

I have just downloaded the thesisdown package and would like to use it for my thesis.
However, when I load a new Rmd file with your template and I try to knit it without changing anything I receive this error message:

Error in file(con, "r") : cannot open the connection
Calls: ... mapply -> -> readUTF8 -> readLines -> file
In addition: Warning message:
In file(con, "r") : cannot open file 'index.Rmd': No such file or directory
Execution halted

Do you know what is wrong? And why it does not work?
Thanks a lot.

Derivative files in package?

I was poking around and noticed that there are quite a lot of derivative files in this package. I'm wondering which files exactly are derivative (for example, it's clear that skeleton/_book/ is a derivative, but others are not so clear.)

Otherwise, this is a fantastic idea. I plan on using this framework using the style guide from Oregon State University for my own dissertation.

Text style in figure capture

Hi,

First, thanks for this awesome template. I wondered if there's a way to have some text in the figure capture in italics or bold? There should be, no?

I tried...

  1. fig.cap="\textit{X.leavis}"
  2. fig.cap="_ X.leavis _"
  3. fig.cap="* X.leavis *"

but none worked (the latter two without the spaces of course).

Thanks.

Add more templates?

Hi Chester,

As you saw in #2, I have an interest in utilizing this for the Oregon State University thesis template. My work is currently on my osu-thesis branch. I'm wondering if you would be up for expanding this package in a similar vein to rticles. Plus, if we get people from PSU and UO to contribute, we could have an oregonthesis package on our hands 😸 . What do you think?

Template only appears after reloading R session

I created a new package for UoM but after installing it, it only appears under the RMarkdown template list after restarting my R session. Is this something related to the way the package is configured? Thesisdown and unswthesisdown don't have this problem.

I'm using RStudio Version 1.2.1335 and R 3.6.0 in Windows x64.

Using alternative to tinytex

Hello,

I have been experiencing some issues with knitting my thesisdown to pdf while relying on the tinytex package. Without getting into that topic, I'm rather wondering if it is possible to rely on an alternative source of Latex from knitting?

Mainly I am thinking this might be possible is as the thesisdown doc reads

By far the easiest way to install LaTeX on any platform is with the tinytex R package

But is this the only option? Does the thesisdown package automatically enforce or search for TinyTex alone?

To try it out I have removed TinyTex and installed the full TeX Live for windows, but this is not automatically recognized by my RStudio so far - so would value a little guidance on kniting my thesisdown with the local TeX Live if it's possible.

! LaTeX Error: Environment cslreferences undefined.

While knitting to a .pdf version, I kept running into the following bug:

! LaTeX Error: Environment cslreferences undefined.

According this r-markdown issue the error should be fixed in the latest rmarkdown development version, although this is not the case for me when I'm working with the thesis down template.

Any thoughts?

Adding the following lines of code to template.tex fixed it for me at least.

$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
  {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
  \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
  {\par}
$endif$

Including 'abstract' into yaml header causes a bunch of various errors

Hi,

first of all thank you very much for providing a skeleton to write my thesis with bookdown.

I figured out that line 22-23 of the index.Rmd lead to various errors when knitting the file as a gitbook:

abstract: |
  `r if(knitr:::is_latex_output()) paste(readLines("00-abstract.Rmd"), collapse = '\n  ')`
[WARNING] Could not parse YAML metadata at line 44 column 1: :23:0: leading empty lines contain more spaces than the first non-empty line in scalar
pandoc-citeproc: reference Molina1994 not found
pandoc-citeproc: reference reedweb2007 not found
pandoc-citeproc: reference noble2002 not found
[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata.
  Falling back to 'thesis.utf8'

Especially the second warning is critical as it removes the information about title, author and date from the gitbook. Hence, it starts directly with Introduction

Removing line 22-23 solves these problem (but is at least for me not an option to solve this issue)

Thanks,
Christian

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.