2

This question already has an answer here:

I have the following document:

\documentclass[a4paper,10pt]{article}

% -------- Packages
\usepackage{marvosym}
\usepackage{enumitem}
% \usepackage{fontspec}             
\usepackage{xunicode,xltxtra,url,parskip} 
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo}               % \usepackage{fullpage} **
\usepackage{supertabular}               
\usepackage{titlesec}                   
\usepackage{tabularx} 
\usepackage{hyperref}
\usepackage{helvet}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}

\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{1pt}{1pt}
% -------------- margins
    \addtolength{\oddsidemargin}{-.75in}
    \addtolength{\evensidemargin}{-.75in}
    \addtolength{\textwidth}{1.25in}

    \addtolength{\topmargin}{-.575in}
    \addtolength{\textheight}{1.75in}

%-----------WATERMARK TEST 
\usepackage[absolute]{textpos}

\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{2mm}{0.65\paperheight}
\setlength{\parindent}{0pt}
%--------------------------------------------------------
%--------------------BEGIN DOCUMENT----------------------
\begin{document}

\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}

\pagestyle{empty} % non-numbered pages

\font\fb=''[cmr10]'' %for use with \LaTeX command

%--------------------TITLE-------------
\par{\centering
        {\LARGE Eduardo Flores Lomas
    }\par}

% ------------ Work Experience

\section{Work Experience}

\begin{tabular}{L{14cm}R{2.7cm}}

\noindent\textbf{
 Farmacias del Ahorro
 }
 - \scriptsize{Largest retail pharmacy chain in Mexico (1,300+ stores)} & \scriptsize{Jan 15' - Current}
\\
 Data Science Coordinator
 - \scriptsize{Technology and Projects Department} 
 \\
 % \footnotesize{ 
 \multicolumn{2}{p{16.7cm}}{
 Responsible for finding and implementing data science methods to solve a wide range of business problems.
 }

But I want to avoid that ugly indentation at "Farmacias del Ahorro" when I bold it...

enter image description here

When I remove the \textbf at the beginning of "Farmacias del Ahorro" it aligns perfectly:

enter image description here

As can be seen, I've tried \noindent ... what am I missing?

marked as duplicate by Werner, Mensch, Jesse, barbara beeton, user36296 Aug 10 '16 at 17:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I am pretty sure you have trailing whitespace somewhere (or missing a %). Change \noindent\textbf{ to \noindent\textbf{%... – user31729 Aug 10 '16 at 15:07
  • @ChristianHupfer wow! that did it! Thanks!! – eflores89 Aug 10 '16 at 15:09
  • size changes do not take an argument so \scriptsize{...} should be {\scriptsize ....\par} otherwise the rest of teh document from that point is affected. – David Carlisle Aug 10 '16 at 16:31
2

The error was

\noindent\textbf{
 Farmacias del Ahorro
 }

causing a superfluous whitespace, so either add a % at the end of the line

\noindent\textbf{%
Farmacias del Ahorro
}

or put everything on two lines only:

\noindent\textbf{Farmacias del Ahorro 
}

Now, depending on the real usage, a % after Ahorro might be appropiate!

Not the answer you're looking for? Browse other questions tagged or ask your own question.