Skip to content

Instantly share code, notes, and snippets.

@Rmano
Last active December 23, 2020 10:49
Show Gist options
  • Save Rmano/a51283186c4840f4cb0f489432545bdd to your computer and use it in GitHub Desktop.
Save Rmano/a51283186c4840f4cb0f489432545bdd to your computer and use it in GitHub Desktop.
Test file to show MDPI tempalte output routine error
%
% without the \clearpage on line 192 it explodes...
%
% LaTeX support: latex@mdpi.com
% For support, please attach all files needed for compiling as well as the log file, and specify your operating system, LaTeX version, and LaTeX editor.
%=================================================================
\documentclass[applsci,article,submit,moreauthors,pdftex]{Definitions/mdpi}
% For posting an early version of this manuscript as a preprint, you may use "preprints" as the journal and change "submit" to "accept". The document class line would be, e.g., \documentclass[preprints,article,accept,moreauthors,pdftex]{mdpi}. This is especially recommended for submission to arXiv, where line numbers should be removed before posting. For preprints.org, the editorial staff will make this change immediately prior to posting.
%----------
% submit
%----------
% The class option "submit" will be changed to "accept" by the Editorial Office when the paper is accepted. This will only make changes to the frontpage (e.g., the logo of the journal will get visible), the headings, and the copyright information. Also, line numbering will be removed. Journal info and pagination for accepted papers will also be assigned by the Editorial Office.
%---------
% pdftex
%---------
% The option pdftex is for use with pdfLaTeX. If eps figures are used, remove the option pdftex and use LaTeX and dvi2pdf.
%=================================================================
\firstpage{1}
\makeatletter
\setcounter{page}{\@firstpage}
\makeatother
\pubvolume{1}
\issuenum{1}
\articlenumber{0}
\pubyear{2021}
\copyrightyear{2020}
%\externaleditor{Academic Editor: Firstname Lastname}
\datereceived{}
\dateaccepted{}
\datepublished{}
%%% CHANGED HERE by Romano
\advance\headheight by 20pt % bug in MDPI template
%------------------------------------------------------------------
% The following line should be uncommented if the LaTeX file is uploaded to arXiv.org
%\pdfoutput=1
%=================================================================
% Add packages and commands here. The following packages are loaded in our class file: fontenc, inputenc, calc, indentfirst, fancyhdr, graphicx, epstopdf, lastpage, ifthen, lineno, float, amsmath, setspace, enumitem, mathpazo, booktabs, titlesec, etoolbox, tabto, xcolor, soul, multirow, microtype, tikz, totcount, changepage, paracol, attrib, upgreek, cleveref, amsthm, hyphenat, natbib, hyperref, footmisc, url, geometry, newfloat, caption
\usepackage{lipsum}
%=================================================================
%% Please use the following mathematics environments: Theorem, Lemma, Corollary, Proposition, Characterization, Property, Problem, Example, ExamplesandDefinitions, Hypothesis, Remark, Definition, Notation, Assumption
%% For proofs, please use the proof environment (the amsthm package is loaded by the MDPI class).
%=================================================================
% Full title of the paper (Capitalized)
\Title{Title still to be decided}
% MDPI internal command: Title for citation in the left column
\TitleCitation{Title}
% Author Orchid ID: enter ID or remove command
\newcommand{\orcidauthorA}{0000-0000-0000-000X} % Add \orcidA{} behind the author's name
% Authors, for the paper (add full first names)
\Author{
Name Surname $^{1,\dagger}$\orcidA{},
}
% MDPI internal command: Authors, for metadata in PDF
\AuthorNames{ Name Surname, }
% MDPI internal command: Authors, for citation in the left column
\AuthorCitation{ surname, N.}
% Affiliations / Addresses (Add [1] after \address if there is only one affiliation.)
\address{%
$^{1}$ \quad My affiliation and address\\
}
% Contact information of the corresponding author
\corres{Correspondence: }
% Current address and/or shared authorship
\firstnote{These authors contributed equally to this work.}
% The commands \thirdnote{} till \eighthnote{} are available for further notes
%\simplesumm{} % Simple summary
%\conference{} % An extended version of a conference paper
% Abstract (Do not insert blank lines, i.e. \\)
\abstract{
\lipsum[1]
}
% Keywords
\keyword{keyword 1; keyword 2; keyword 3 (List three to ten pertinent keywords specific to the article; yet reasonably common within the subject discipline.)}
% The fields PACS, MSC, and JEL may be left empty or commented out if not applicable
%\PACS{J0101}
%\MSC{}
%\JEL{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Only for the journal Diversity
%\LSID{\url{http://}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Only for the journal Applied Sciences:
%\featuredapplication{Authors are encouraged to provide a concise description of the specific application or a potential application of the work. This section is not mandatory.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Only for the journal Data:
%\dataset{DOI number or link to the deposited data set in cases where the data set is published or set to be published separately. If the data set is submitted and will be published as a supplement to this paper in the journal Data, this field will be filled by the editors of the journal. In this case, please make sure to submit the data set as a supplement when entering your manuscript into our manuscript editorial system.}
%\datasetlicense{license under which the data set is made available (CC0, CC-BY, CC-BY-SA, CC-BY-NC, etc.)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Only for the journal Toxins
%\keycontribution{The breakthroughs or highlights of the manuscript. Authors can write one or two sentences to describe the most important part of the paper.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Only for the journal Encyclopedia
%\encyclopediadef{Instead of the abstract}
%\entrylink{The Link to this entry published on the encyclopedia platform.}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \setcounter{section}{-1} %% Remove this when starting to work on the template.
\section{Introduction}
\lipsum[3-6]
\section{Proposed Methodology}
\lipsum[6-9]
% fig.schematic
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\subsection{Simulation}
\lipsum
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[3-5]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[1-3]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
% the MDPI template is buggy
%\clearpage
\lipsum[2]
% fig.settling_time
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[3-6]
\subsection{Prototype}
\lipsum[2-5]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[2]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[1]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum
% tab.experiments
\begin{table}[H]
\caption{Number of experiment in function of the contact impedance values}
\centering
\begin{tabular}{r*{4}{c}}\hline
\toprule
A & B & C & D \\
\midrule
&1&2&3\\
&4&5&6\\
&7&8&9\\
\bottomrule
\end{tabular}
\end{table}
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\lipsum[1]
\begin{figure}[H]
\centering
\fbox{\begin{minipage}{10.5cm}
\vspace*{2cm}
\centering Text image
\vspace*{2cm}
\end{minipage}}
\caption{Schematic of the active filter proposed}
\end{figure}
\section{Conclusions}
We have to put conclusions here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\authorcontributions{For research articles with several authors}
\funding{Please add: ``This research received no external funding''.}
\dataavailability{Please refer to suggested Data Availability Statements in section “MDPI Research Data Policies” at \href{https://www.mdpi.com/ethics}{https://www.mdpi.com/ethics}.}
\acknowledgments{Ack!}
\conflictsofinterest{The authors declare no conflict of interest.}
%%%% You have to put
\end{paracol} % this is weird...
\reftitle{References}
%=====================================
% References, variant A: external bibliography
%=====================================
% \externalbibliography{yes}
% \bibliography{Bib_file}
%%=====================================
%% References, variant B: internal bibliography
%%=====================================
\begin{thebibliography}{999}
% Reference 1
\bibitem[Author1(year)]{ref-journal}
Author~1, T. The title of the cited article. {\em Journal Abbreviation} {\bf 2008}, {\em 10}, 142--149.
Reference 2
\bibitem[Author2(year)]{ref-book1}
Author~2, L. The title of the cited contribution. In {\em The Book Title}; Editor1, F., Editor2, A., Eds.; Publishing House: City, Country, 2007; pp. 32--58.
% Reference 3
\end{thebibliography}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment