Tag Info

Hot answers tagged

5

Nice question! Here is one way of doing this. I have hijacked the \paragraph command so that it prints the argument that it is given using \textbf{#1} and it then sets paragraph counters, \firstpara and \lastpara, by calling the command \setparagraph with #1-0-| as the argument. The \setparagraph macro is a little tricky as it needs to accept arguments ...


3

One option is yo use \marginnote from the marginnote package; using the geometry package you can change marginparsep (the separation between the marginal note and the regular text) and/or marginparwidth the width reserved for the note: \documentclass[12pt]{article} \usepackage[marginparsep=25pt]{geometry} \usepackage{blindtext} \usepackage{marginnote} ...


3

Just add it. ;-) \documentclass{article} \newcommand{\KW}[1]{% \par % ensure vertical mode \leavevmode % start a paragraph {\setbox0=\lastbox}% remove the indentation box \makebox[0pt][r]{\textbf{#1}\hspace{2em}}% print the keyword \hspace*{\parindent}% add the parindent \ignorespaces } \begin{document} This paragraph has no keyword, it has ...


3

\documentclass[12pt,a4paper]{article} \setlength{\parskip}{2\baselineskip} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important advantages of replication is that it masks and tolerates failures in the network gracefully and increases availability. In case of multiple access a problem that ...


2

This is not a complete solution but perhaps it is helpful. What it does achieve: paragraphs which should be indented are indented automatically; you do not need to specify the width of the inserted thing. What it does not achieve: the first paragraph following a sectional division must be marked with \noindent if it is to be wrapped around an inserted ...


1

You can use \setlength{\parskip}{12pt} to achieve a custom \parskip in your whole document. Adjust the value to your needs and place the command inside your document-environment.


1

You can add the following to the top of your file: \documentclass[parskip=full]{scrartcl} This way, the spacing will automatically update based upon the font size you choose. Here is a MWE: \setlength{\parskip}{12pt} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important ...


1

Never use \\ at the end of a paragraph and do not change the \parskip manually (see http://tex.stackexchange.com/a/14565/43317). You could load package parskip \documentclass{article} \usepackage{parskip} \begin{document} \section{Introduction} In a distributed database system, data is replicate of the most important advantages of replication is that it ...


1

[expunged original answer] Ok. Your new MWE shows another level of difficulty and a promise of future complications. What you need is a full-fledged two column baseline grid. I think your best bets are grid, gridset and ConTeXt.


1

Here is a key-value interface which allows you to adjust the separation, the font and color: \documentclass{article} \usepackage[nopar]{lipsum} \usepackage{xcolor,xkeyval} \makeatletter \define@cmdkey{KW}{sep}{} \define@cmdkey{KW}{color}{} \define@cmdkey{KW}{font}{} \newcommand{\KeyWord}[2][]{% \par\noindent \setkeys{KW}{#1}% ...



Only top voted, non community-wiki answers of a minimum length are eligible