Skip to content

Commit

Permalink
adjust cover abd header for landscape pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Sep 16, 2020
1 parent a8cb249 commit 357bfd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 2 additions & 4 deletions pdf_build_src/cover.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
% LOGO SECTION
%----------------------------------------------------------------------------------------

\includegraphics[width=0.6\textwidth]{images/BIDS_logo.jpg}\\[1cm]
\includegraphics[width=0.6\textwidth]{images/BIDS_logo.jpg}\\[-5cm]

%----------------------------------------------------------------------------------------
% TITLE SECTION
Expand All @@ -21,7 +21,5 @@
{ \huge \bfseries Brain Imaging Data Structure Specification}\\[0.4cm] % Title of your document
\HRule \\[1.5cm]

% \textsc{\large v1.2.1}\\[0.5cm]{\large 2019-08-14}\\[2cm]

% \vfill % Fill the rest of the page with whitespace
\textsc{\large v1.2.1}\\[0.5cm]{\large 2019-08-14}\\[2cm]\vfill\end{titlepage}
% \textsc{\large v1.2.1}\\[0.5cm]{\large 2019-08-14}\\[2cm]\vfill\end{titlepage}
6 changes: 4 additions & 2 deletions pdf_build_src/header.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
% header file
% DO NOT EDIT THE 4 LINES BELOW THIS LINE (see `add_header` in process_markdowns.py)
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\chead{Brain Imaging Data Structure v1.2.1 2019-08-14}
\fancyhead[L]{ Brain Imaging Data Structure v1.4.1-dev 2020-09-16 }
% Edit from here below
\fancyfoot[L]{\thepage}
6 changes: 3 additions & 3 deletions pdf_build_src/process_markdowns.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ def add_header():
header = " ".join([title, version_number, build_date])

# creating a header string with latest version number and date
header_string = (r"\chead{ " + header + " }")
header_string = (r"\fancyhead[L]{ " + header + " }")

with open('header.tex', 'r') as file:
data = file.readlines()

# now change the last but 2nd line, note that you have to add a newline
data[-2] = header_string+'\n'
# insert the header, note that you have to add a newline
data[4] = header_string+'\n'

# re-write header.tex file with new header string
with open('header.tex', 'w') as file:
Expand Down

0 comments on commit 357bfd3

Please sign in to comment.