Removing unnecessary horizontal space (gap) from the superscript
I am using the 'rticle' package in R which allows building R markdown documents based on pre-specified templates for the journal submission. The template is in .tex format and as shown in the figure, I am using PLOS template. However, I am not able to remove the space from the superscript.
The code responsible for this is the following (I believe)
% Template for PLoS
% Version 3.4 January 2017
documentclass[10pt,letterpaper]{article}
usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
% amsmath and amssymb packages, useful for mathematical formulas and symbols
usepackage{amsmath,amssymb}
% Use adjustwidth environment to exceed column width (see example table in text)
usepackage{changepage}
% Use Unicode characters when possible
usepackage[utf8x]{inputenc}
% textcomp package and marvosym package for additional characters
usepackage{textcomp,marvosym}
% cite package, to clean up citations in the main text. Do not remove.
% usepackage{cite}
% Use nameref to cite supporting information files (see Supporting Information section for more info)
usepackage{nameref,hyperref}
% line numbers
usepackage[right]{lineno}
% ligatures disabled
usepackage{microtype}
DisableLigatures[f]{encoding = *, family = * }
% color can be used to apply background shading to table cells only
usepackage[table]{xcolor}
% array package and thick rules for tables
usepackage{array}
% create "+" rule type for thick vertical lines
newcolumntype{+}{!{vrule width 2pt}}
% create thickcline for thick horizontal lines of variable length
newlengthsavedwidth
newcommandthickcline[1]{%
noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
cline{#1}%
noalign{vskiparrayrulewidth}%
noalign{globalarrayrulewidthsavedwidth}%
}
% thickhline command for thick horizontal lines that span the table
newcommandthickhline{noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
hline
noalign{globalarrayrulewidthsavedwidth}}
% Remove comment for double spacing
%usepackage{setspace}
%doublespacing
% Text layout
raggedright
setlength{parindent}{0.5cm}
textwidth 5.25in
textheight 8.75in
% Bold the 'Figure #' in the caption and separate it from the title/caption with a period
% Captions will be left justified
usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
renewcommand{figurename}{Fig}
% Use the PLoS provided BiBTeX style
% bibliographystyle{plos2015}
% Remove brackets from numbering in List of References
makeatletter
renewcommand{@biblabel}[1]{quad#1.}
makeatother
% Leave date blank
date{}
% Header and Footer with logo
usepackage{lastpage,fancyhdr,graphicx}
usepackage{epstopdf}
pagestyle{myheadings}
pagestyle{fancy}
fancyhf{}
setlength{headheight}{27.023pt}
lhead{includegraphics[width=2.0in]{PLOS-submission.eps}}
rfoot{thepage/pageref{LastPage}}
renewcommand{footrule}{hrule height 2pt vspace{2mm}}
fancyheadoffset[L]{2.25in}
fancyfootoffset[L]{2.25in}
lfoot{sf PLOS}
%% Include all macros below
newcommand{lorem}{{bf LOREM}}
newcommand{ipsum}{{bf IPSUM}}
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$preamble$
usepackage{forarray}
usepackage{xstring}
newcommand{getIndex}[2]{%
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}
}
setcounter{secnumdepth}{0}
newcommand{getAff}[1]{%
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
}
providecommand{tightlist}{%
setlength{itemsep}{0pt}setlength{parskip}{0pt}}
begin{document}
vspace*{0.2in}
% Title must be 250 characters or less.
begin{flushleft}
{Large
textbfnewline{$title$} % Please use "sentence case" for title and headings (capitalize only the first word in a title (or heading), the first word in a subtitle (or subheading), and any proper nouns).
}
newline
\
$for(author)$
$author.name$textsuperscript{$for(author.affiliation)$getAff{$author.affiliation$}$sep$, $endfor$}$if(author.corresponding)$textsuperscript{*}$endif$$sep$,
$endfor$
\
bigskip
$for(address)$
textbf{getAff{$address.code$}}$address.address$\
$endfor$
bigskip
$for(author)$
$if(author.corresponding)$
* Corresponding author: $author.email$\
$endif$
$endfor$
end{flushleft}
% Please keep the abstract below 300 words
$if(abstract)$
section*{Abstract}
$abstract$
$endif$
% Please keep the Author Summary between 150 and 200 words
% Use first person. PLOS ONE authors please skip this step.
% Author Summary not valid for PLOS ONE submissions.
$if(author_summary)$
section*{Author summary}
$author_summary$
$endif$
linenumbers
% Use "Eq" instead of "Equation" for equation citations.
$body$
nolinenumbers
$if(biblio-files)$
bibliography{$biblio-files$}
$endif$
end{document}
Thank you in advance.
D.
pdftex superscripts
add a comment |
I am using the 'rticle' package in R which allows building R markdown documents based on pre-specified templates for the journal submission. The template is in .tex format and as shown in the figure, I am using PLOS template. However, I am not able to remove the space from the superscript.
The code responsible for this is the following (I believe)
% Template for PLoS
% Version 3.4 January 2017
documentclass[10pt,letterpaper]{article}
usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
% amsmath and amssymb packages, useful for mathematical formulas and symbols
usepackage{amsmath,amssymb}
% Use adjustwidth environment to exceed column width (see example table in text)
usepackage{changepage}
% Use Unicode characters when possible
usepackage[utf8x]{inputenc}
% textcomp package and marvosym package for additional characters
usepackage{textcomp,marvosym}
% cite package, to clean up citations in the main text. Do not remove.
% usepackage{cite}
% Use nameref to cite supporting information files (see Supporting Information section for more info)
usepackage{nameref,hyperref}
% line numbers
usepackage[right]{lineno}
% ligatures disabled
usepackage{microtype}
DisableLigatures[f]{encoding = *, family = * }
% color can be used to apply background shading to table cells only
usepackage[table]{xcolor}
% array package and thick rules for tables
usepackage{array}
% create "+" rule type for thick vertical lines
newcolumntype{+}{!{vrule width 2pt}}
% create thickcline for thick horizontal lines of variable length
newlengthsavedwidth
newcommandthickcline[1]{%
noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
cline{#1}%
noalign{vskiparrayrulewidth}%
noalign{globalarrayrulewidthsavedwidth}%
}
% thickhline command for thick horizontal lines that span the table
newcommandthickhline{noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
hline
noalign{globalarrayrulewidthsavedwidth}}
% Remove comment for double spacing
%usepackage{setspace}
%doublespacing
% Text layout
raggedright
setlength{parindent}{0.5cm}
textwidth 5.25in
textheight 8.75in
% Bold the 'Figure #' in the caption and separate it from the title/caption with a period
% Captions will be left justified
usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
renewcommand{figurename}{Fig}
% Use the PLoS provided BiBTeX style
% bibliographystyle{plos2015}
% Remove brackets from numbering in List of References
makeatletter
renewcommand{@biblabel}[1]{quad#1.}
makeatother
% Leave date blank
date{}
% Header and Footer with logo
usepackage{lastpage,fancyhdr,graphicx}
usepackage{epstopdf}
pagestyle{myheadings}
pagestyle{fancy}
fancyhf{}
setlength{headheight}{27.023pt}
lhead{includegraphics[width=2.0in]{PLOS-submission.eps}}
rfoot{thepage/pageref{LastPage}}
renewcommand{footrule}{hrule height 2pt vspace{2mm}}
fancyheadoffset[L]{2.25in}
fancyfootoffset[L]{2.25in}
lfoot{sf PLOS}
%% Include all macros below
newcommand{lorem}{{bf LOREM}}
newcommand{ipsum}{{bf IPSUM}}
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$preamble$
usepackage{forarray}
usepackage{xstring}
newcommand{getIndex}[2]{%
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}
}
setcounter{secnumdepth}{0}
newcommand{getAff}[1]{%
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
}
providecommand{tightlist}{%
setlength{itemsep}{0pt}setlength{parskip}{0pt}}
begin{document}
vspace*{0.2in}
% Title must be 250 characters or less.
begin{flushleft}
{Large
textbfnewline{$title$} % Please use "sentence case" for title and headings (capitalize only the first word in a title (or heading), the first word in a subtitle (or subheading), and any proper nouns).
}
newline
\
$for(author)$
$author.name$textsuperscript{$for(author.affiliation)$getAff{$author.affiliation$}$sep$, $endfor$}$if(author.corresponding)$textsuperscript{*}$endif$$sep$,
$endfor$
\
bigskip
$for(address)$
textbf{getAff{$address.code$}}$address.address$\
$endfor$
bigskip
$for(author)$
$if(author.corresponding)$
* Corresponding author: $author.email$\
$endif$
$endfor$
end{flushleft}
% Please keep the abstract below 300 words
$if(abstract)$
section*{Abstract}
$abstract$
$endif$
% Please keep the Author Summary between 150 and 200 words
% Use first person. PLOS ONE authors please skip this step.
% Author Summary not valid for PLOS ONE submissions.
$if(author_summary)$
section*{Author summary}
$author_summary$
$endif$
linenumbers
% Use "Eq" instead of "Equation" for equation citations.
$body$
nolinenumbers
$if(biblio-files)$
bibliography{$biblio-files$}
$endif$
end{document}
Thank you in advance.
D.
pdftex superscripts
5
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it withdocumentclass{...}
, the requiredusepackage
's,begin{document}
, andend{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
– Stefan Pinnow
Jan 22 at 5:31
add a comment |
I am using the 'rticle' package in R which allows building R markdown documents based on pre-specified templates for the journal submission. The template is in .tex format and as shown in the figure, I am using PLOS template. However, I am not able to remove the space from the superscript.
The code responsible for this is the following (I believe)
% Template for PLoS
% Version 3.4 January 2017
documentclass[10pt,letterpaper]{article}
usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
% amsmath and amssymb packages, useful for mathematical formulas and symbols
usepackage{amsmath,amssymb}
% Use adjustwidth environment to exceed column width (see example table in text)
usepackage{changepage}
% Use Unicode characters when possible
usepackage[utf8x]{inputenc}
% textcomp package and marvosym package for additional characters
usepackage{textcomp,marvosym}
% cite package, to clean up citations in the main text. Do not remove.
% usepackage{cite}
% Use nameref to cite supporting information files (see Supporting Information section for more info)
usepackage{nameref,hyperref}
% line numbers
usepackage[right]{lineno}
% ligatures disabled
usepackage{microtype}
DisableLigatures[f]{encoding = *, family = * }
% color can be used to apply background shading to table cells only
usepackage[table]{xcolor}
% array package and thick rules for tables
usepackage{array}
% create "+" rule type for thick vertical lines
newcolumntype{+}{!{vrule width 2pt}}
% create thickcline for thick horizontal lines of variable length
newlengthsavedwidth
newcommandthickcline[1]{%
noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
cline{#1}%
noalign{vskiparrayrulewidth}%
noalign{globalarrayrulewidthsavedwidth}%
}
% thickhline command for thick horizontal lines that span the table
newcommandthickhline{noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
hline
noalign{globalarrayrulewidthsavedwidth}}
% Remove comment for double spacing
%usepackage{setspace}
%doublespacing
% Text layout
raggedright
setlength{parindent}{0.5cm}
textwidth 5.25in
textheight 8.75in
% Bold the 'Figure #' in the caption and separate it from the title/caption with a period
% Captions will be left justified
usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
renewcommand{figurename}{Fig}
% Use the PLoS provided BiBTeX style
% bibliographystyle{plos2015}
% Remove brackets from numbering in List of References
makeatletter
renewcommand{@biblabel}[1]{quad#1.}
makeatother
% Leave date blank
date{}
% Header and Footer with logo
usepackage{lastpage,fancyhdr,graphicx}
usepackage{epstopdf}
pagestyle{myheadings}
pagestyle{fancy}
fancyhf{}
setlength{headheight}{27.023pt}
lhead{includegraphics[width=2.0in]{PLOS-submission.eps}}
rfoot{thepage/pageref{LastPage}}
renewcommand{footrule}{hrule height 2pt vspace{2mm}}
fancyheadoffset[L]{2.25in}
fancyfootoffset[L]{2.25in}
lfoot{sf PLOS}
%% Include all macros below
newcommand{lorem}{{bf LOREM}}
newcommand{ipsum}{{bf IPSUM}}
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$preamble$
usepackage{forarray}
usepackage{xstring}
newcommand{getIndex}[2]{%
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}
}
setcounter{secnumdepth}{0}
newcommand{getAff}[1]{%
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
}
providecommand{tightlist}{%
setlength{itemsep}{0pt}setlength{parskip}{0pt}}
begin{document}
vspace*{0.2in}
% Title must be 250 characters or less.
begin{flushleft}
{Large
textbfnewline{$title$} % Please use "sentence case" for title and headings (capitalize only the first word in a title (or heading), the first word in a subtitle (or subheading), and any proper nouns).
}
newline
\
$for(author)$
$author.name$textsuperscript{$for(author.affiliation)$getAff{$author.affiliation$}$sep$, $endfor$}$if(author.corresponding)$textsuperscript{*}$endif$$sep$,
$endfor$
\
bigskip
$for(address)$
textbf{getAff{$address.code$}}$address.address$\
$endfor$
bigskip
$for(author)$
$if(author.corresponding)$
* Corresponding author: $author.email$\
$endif$
$endfor$
end{flushleft}
% Please keep the abstract below 300 words
$if(abstract)$
section*{Abstract}
$abstract$
$endif$
% Please keep the Author Summary between 150 and 200 words
% Use first person. PLOS ONE authors please skip this step.
% Author Summary not valid for PLOS ONE submissions.
$if(author_summary)$
section*{Author summary}
$author_summary$
$endif$
linenumbers
% Use "Eq" instead of "Equation" for equation citations.
$body$
nolinenumbers
$if(biblio-files)$
bibliography{$biblio-files$}
$endif$
end{document}
Thank you in advance.
D.
pdftex superscripts
I am using the 'rticle' package in R which allows building R markdown documents based on pre-specified templates for the journal submission. The template is in .tex format and as shown in the figure, I am using PLOS template. However, I am not able to remove the space from the superscript.
The code responsible for this is the following (I believe)
% Template for PLoS
% Version 3.4 January 2017
documentclass[10pt,letterpaper]{article}
usepackage[top=0.85in,left=2.75in,footskip=0.75in]{geometry}
% amsmath and amssymb packages, useful for mathematical formulas and symbols
usepackage{amsmath,amssymb}
% Use adjustwidth environment to exceed column width (see example table in text)
usepackage{changepage}
% Use Unicode characters when possible
usepackage[utf8x]{inputenc}
% textcomp package and marvosym package for additional characters
usepackage{textcomp,marvosym}
% cite package, to clean up citations in the main text. Do not remove.
% usepackage{cite}
% Use nameref to cite supporting information files (see Supporting Information section for more info)
usepackage{nameref,hyperref}
% line numbers
usepackage[right]{lineno}
% ligatures disabled
usepackage{microtype}
DisableLigatures[f]{encoding = *, family = * }
% color can be used to apply background shading to table cells only
usepackage[table]{xcolor}
% array package and thick rules for tables
usepackage{array}
% create "+" rule type for thick vertical lines
newcolumntype{+}{!{vrule width 2pt}}
% create thickcline for thick horizontal lines of variable length
newlengthsavedwidth
newcommandthickcline[1]{%
noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
cline{#1}%
noalign{vskiparrayrulewidth}%
noalign{globalarrayrulewidthsavedwidth}%
}
% thickhline command for thick horizontal lines that span the table
newcommandthickhline{noalign{globalsavedwidtharrayrulewidthglobalarrayrulewidth 2pt}%
hline
noalign{globalarrayrulewidthsavedwidth}}
% Remove comment for double spacing
%usepackage{setspace}
%doublespacing
% Text layout
raggedright
setlength{parindent}{0.5cm}
textwidth 5.25in
textheight 8.75in
% Bold the 'Figure #' in the caption and separate it from the title/caption with a period
% Captions will be left justified
usepackage[aboveskip=1pt,labelfont=bf,labelsep=period,justification=raggedright,singlelinecheck=off]{caption}
renewcommand{figurename}{Fig}
% Use the PLoS provided BiBTeX style
% bibliographystyle{plos2015}
% Remove brackets from numbering in List of References
makeatletter
renewcommand{@biblabel}[1]{quad#1.}
makeatother
% Leave date blank
date{}
% Header and Footer with logo
usepackage{lastpage,fancyhdr,graphicx}
usepackage{epstopdf}
pagestyle{myheadings}
pagestyle{fancy}
fancyhf{}
setlength{headheight}{27.023pt}
lhead{includegraphics[width=2.0in]{PLOS-submission.eps}}
rfoot{thepage/pageref{LastPage}}
renewcommand{footrule}{hrule height 2pt vspace{2mm}}
fancyheadoffset[L]{2.25in}
fancyfootoffset[L]{2.25in}
lfoot{sf PLOS}
%% Include all macros below
newcommand{lorem}{{bf LOREM}}
newcommand{ipsum}{{bf IPSUM}}
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$preamble$
usepackage{forarray}
usepackage{xstring}
newcommand{getIndex}[2]{%
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}
}
setcounter{secnumdepth}{0}
newcommand{getAff}[1]{%
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}
}
providecommand{tightlist}{%
setlength{itemsep}{0pt}setlength{parskip}{0pt}}
begin{document}
vspace*{0.2in}
% Title must be 250 characters or less.
begin{flushleft}
{Large
textbfnewline{$title$} % Please use "sentence case" for title and headings (capitalize only the first word in a title (or heading), the first word in a subtitle (or subheading), and any proper nouns).
}
newline
\
$for(author)$
$author.name$textsuperscript{$for(author.affiliation)$getAff{$author.affiliation$}$sep$, $endfor$}$if(author.corresponding)$textsuperscript{*}$endif$$sep$,
$endfor$
\
bigskip
$for(address)$
textbf{getAff{$address.code$}}$address.address$\
$endfor$
bigskip
$for(author)$
$if(author.corresponding)$
* Corresponding author: $author.email$\
$endif$
$endfor$
end{flushleft}
% Please keep the abstract below 300 words
$if(abstract)$
section*{Abstract}
$abstract$
$endif$
% Please keep the Author Summary between 150 and 200 words
% Use first person. PLOS ONE authors please skip this step.
% Author Summary not valid for PLOS ONE submissions.
$if(author_summary)$
section*{Author summary}
$author_summary$
$endif$
linenumbers
% Use "Eq" instead of "Equation" for equation citations.
$body$
nolinenumbers
$if(biblio-files)$
bibliography{$biblio-files$}
$endif$
end{document}
Thank you in advance.
D.
pdftex superscripts
pdftex superscripts
edited Jan 22 at 14:12
DavidS
asked Jan 22 at 5:25
DavidSDavidS
32
32
5
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it withdocumentclass{...}
, the requiredusepackage
's,begin{document}
, andend{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
– Stefan Pinnow
Jan 22 at 5:31
add a comment |
5
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it withdocumentclass{...}
, the requiredusepackage
's,begin{document}
, andend{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.
– Stefan Pinnow
Jan 22 at 5:31
5
5
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with
documentclass{...}
, the required usepackage
's, begin{document}
, and end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.– Stefan Pinnow
Jan 22 at 5:31
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with
documentclass{...}
, the required usepackage
's, begin{document}
, and end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.– Stefan Pinnow
Jan 22 at 5:31
add a comment |
1 Answer
1
active
oldest
votes
Since there is no MWE to try out, I can only guess, that you are introducing unwanted whitespace in the definition of getAff
and getIndex
. You can get rid of it by adding a %
at the line endings:
newcommand{getAff}[1]{% <-- HERE
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}% <-- HERE
}
newcommand{getIndex}[2]{% <-- HERE
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}% <-- HERE
}
To understand what is going on, have a look here: What is the use of percent signs (%) at the end of lines?
Thank you for the comment. It works to remove the space in the left by placing%
ingetAff}[1]{%
andgetIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.
– DavidS
Jan 22 at 14:16
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471231%2fremoving-unnecessary-horizontal-space-gap-from-the-superscript%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Since there is no MWE to try out, I can only guess, that you are introducing unwanted whitespace in the definition of getAff
and getIndex
. You can get rid of it by adding a %
at the line endings:
newcommand{getAff}[1]{% <-- HERE
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}% <-- HERE
}
newcommand{getIndex}[2]{% <-- HERE
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}% <-- HERE
}
To understand what is going on, have a look here: What is the use of percent signs (%) at the end of lines?
Thank you for the comment. It works to remove the space in the left by placing%
ingetAff}[1]{%
andgetIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.
– DavidS
Jan 22 at 14:16
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
add a comment |
Since there is no MWE to try out, I can only guess, that you are introducing unwanted whitespace in the definition of getAff
and getIndex
. You can get rid of it by adding a %
at the line endings:
newcommand{getAff}[1]{% <-- HERE
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}% <-- HERE
}
newcommand{getIndex}[2]{% <-- HERE
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}% <-- HERE
}
To understand what is going on, have a look here: What is the use of percent signs (%) at the end of lines?
Thank you for the comment. It works to remove the space in the left by placing%
ingetAff}[1]{%
andgetIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.
– DavidS
Jan 22 at 14:16
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
add a comment |
Since there is no MWE to try out, I can only guess, that you are introducing unwanted whitespace in the definition of getAff
and getIndex
. You can get rid of it by adding a %
at the line endings:
newcommand{getAff}[1]{% <-- HERE
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}% <-- HERE
}
newcommand{getIndex}[2]{% <-- HERE
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}% <-- HERE
}
To understand what is going on, have a look here: What is the use of percent signs (%) at the end of lines?
Since there is no MWE to try out, I can only guess, that you are introducing unwanted whitespace in the definition of getAff
and getIndex
. You can get rid of it by adding a %
at the line endings:
newcommand{getAff}[1]{% <-- HERE
getIndex{#1}{$for(address)$$address.code$$sep$,$endfor$}% <-- HERE
}
newcommand{getIndex}[2]{% <-- HERE
ForEach{,}{IfEq{#1}{thislevelitem}{numberthislevelcountExitForEach}{}}{#2}% <-- HERE
}
To understand what is going on, have a look here: What is the use of percent signs (%) at the end of lines?
edited Jan 22 at 15:34
answered Jan 22 at 7:00
DG'DG'
9,93011741
9,93011741
Thank you for the comment. It works to remove the space in the left by placing%
ingetAff}[1]{%
andgetIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.
– DavidS
Jan 22 at 14:16
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
add a comment |
Thank you for the comment. It works to remove the space in the left by placing%
ingetAff}[1]{%
andgetIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.
– DavidS
Jan 22 at 14:16
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
Thank you for the comment. It works to remove the space in the left by placing
%
in getAff}[1]{%
and getIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.– DavidS
Jan 22 at 14:16
Thank you for the comment. It works to remove the space in the left by placing
%
in getAff}[1]{%
and getIndex}[2]{%
, but I am not able to get rid of space in right. Please check the new figure.– DavidS
Jan 22 at 14:16
1
1
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
thank you. Your answer solved my problem. You made my day. Thanks again.
– DavidS
Jan 23 at 0:23
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f471231%2fremoving-unnecessary-horizontal-space-gap-from-the-superscript%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
5
Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with
documentclass{...}
, the requiredusepackage
's,begin{document}
, andend{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.– Stefan Pinnow
Jan 22 at 5:31