How to get rid of that vertical space between caption titles? (space between the second line and the third line).   The figures come from different files that have been \input'ted ;  using \include does not change result.   Edit: problem is due to figures being in different chapters, not due to coming from different files. So answer is there. Thank you Werner.     Minimal example is  \documentclass[12pt,letterpaper,oneside]{book}  \usepackage{blindtext} %\usepackage{tocloft} %\usepackage[nottoc]{tocbibind} %\usepackage{chngcntr} %\counterwithout{figure}{chapter}  %\usepackage[labelsep=newline,justification=centering]{caption}  \begin{document}  \listoffigures \input{part1.tex} \input{part2.tex} \end{document}    where part1.tex has two figures and is   \blinddocument  \begin{figure} \begin{center}   \end{center} \caption{First input file, first figure} \label{fig:TrueDistances1} \end{figure}  \begin{figure} \begin{center}   \end{center} \caption{First input file, second figure} \label{fig:TrueDistances2} \end{figure}   while part2.tex is  \blinddocument  \begin{figure} \begin{center}   \end{center} \caption{Second input file, first figure} \label{fig:TrueDistances3} \end{figure}
When I'm generating a List of Figures in my project, all figures are grouped by chapter. I would like to have the whole list without any additional new lines between different chapters.  How it looks like:  Figure 1.1  Figure 1.2  Figure 2.1  Figure 3.1  Figure 3.2   How it should:  Figure 1.1  Figure 1.2 Figure 2.1 Figure 3.1  Figure 3.2   I tried to apply the following solutions but failed completely :        My main file:  \documentclass[12pt,oneside,titlepage,utf8x]{report}  \usepackage{times,a4wide,multirow,tabularx,graphicx}  \usepackage{psfrag,fancyhdr,longtable}  \usepackage[T1]{fontenc} \usepackage{float} \usepackage[utf8]{inputenc}  \usepackage{url} \usepackage{color} \usepackage{verbatim} \usepackage{fancyvrb} \usepackage{natbib} \usepackage{relsize}  \usepackage{caption} \captionsetup[longtable]{belowskip=10pt}  \usepackage[left=4cm,top=2cm,right=3cm,bottom=2.5cm]{geometry}  \renewcommand{\chaptermark}[1]{\markboth{\nouppercase{\thechapter.\ #1}}{}} \pagestyle{fancy} \headheight 30pt \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{}  \setlength{\parindent}{2em} \setlength{\parskip}{1em} \linespread{1.3}   \begin{document}  \begin{titlepage} \maketitle \end{titlepage}  \tableofcontents  \chapter{First} \label{sec:First} \input{chapter1/chapter1}  \chapter{Second} \label{sec:Second} \input{chapter2/chapter2}  \chapter{Third} \label{sec:Third} \input{chapter3/chapter3}  \relsize{-1} \listoffigures \normalsize  \bibliography{praca_mgr} \bibliographystyle{plain} \nocite{*}  \end{document}
How to change the "User License" type for customer portal users using a script? How are the AES S-Boxes calculated? I'm trying to understand how the AES S-Boxes are calculated. I understand how the multiplicative inverse is calculated over $GF(2^8)$, but I'm confused by the description of the affine transformation. I haven't been able to Google a good explanation of how the S-Box values are calculated. Can someone explain how this works, starting after the calculation of the multiplicative inverse? How do you compute negative numbers to fractional powers? My teachers have gone over rules for dealing with fractional exponents. I was just wondering how someone would compute say: $$(-5)^{2/3}$$ I have tried a couple ways to simplify this and I am not sure if the number stays negative or turns into a positive. I know that if a negative number is raised to an odd power it is negative, but fractional powers are neither odd or even. Is there a general rule for dealing with these types of problems? Is there a quick way to lock my Mac? On Windows you can hit the keys Windows+L to lock your computer if you step away.  I don't want to have to remember if sleep currently asks for a password, if there is a time out where my screen isn't locked during a short period. Even with Lion supporting resume of many apps, I don't want to log out.   I do want to be sure data is secure when stepping out for lunch or a smoke break. Does $1^{\infty}=e$ or $1^{\infty}=1$? Debugging a custom-bib bst file that crashes on book items I created my own bibliography file with custom-bib (makebst), but when I run it with a reference to a book I get:  $ bibtex PhD [...normal output] Database file #1: PhD.bib You can't pop an empty literal stack for entry oecd2001brc while executing---line 1504 of file wdsphd.bst   The only thing on that line is a high-level ITERATE call.   The style was created with these options:  %% merlin.mbs  (with options: `head,exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}') %% english.mbs  (with options: `exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}') %% merlin.mbs  (with options: `tail,exlang,annote,seq-no,nm-rvvc,dt-beg,yr-par,xmth,tit-qq,qx,bt-qq,vol-bf,volp-sp,num-xser,pub-date,isbn,issn,doi,english,pp,ord,url,url-nl,nfss,,{}')   The code for book items looks like:  FUNCTION {book} { output.bibitem   author empty$     { format.editors "author and editor" output.check     }     { format.authors output.nonnull       crossref missing$         { "author and editor" editor either.or.check }         'skip$       if$     }   if$   format.btitle "title" output.check   crossref missing$     { format.bvolume output       new.block       format.number.series output       new.sentence       format.publisher.address output     }     {       new.block       format.book.crossref output.nonnull     }   if$   format.edition output   format.isbn output   format.doi output   new.block   format.note output   fin.entry   write.url }   And this is the entry:  @book{oecd2001brc,  author = {OECD},  doi = {10.1787/9789264193550-en},  isbn = {9789264186903},  publisher = {OECD Publishing},  title = {{Biological Resource Centres: Underpinning the future of life sciences and biotechnology}},  url = {http://www.oecd-ilibrary.org/science-and-technology/biological-resource-centres\_9789264193550-en},  year = {2001} }   Is there a way to get a better stacktrace from bibtex? What I have now doesn 't really tell me what is going on. If it can be fixed simply, help would also be appreciated. I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a file nameto display correct and create it before I start running the program (I like my debug stuff).  However, here is my bash script:    #!/bin/bash  PATH="/var/log/servers/Game/"  FILENAME="startup"  EXT=".log"  DATE=$(date +%d-%m-%Y)  NEWFILE=${PATH}${FILENAME}_${DATE}${EXT}   I have verified that the file does exist in the PATH directory. However, the issue is with the date command. When I run the script bash -x game.sh this is what is displays.   + PATH=/var/log/servers/Game/  + FILENAME=startup  + EXT=.log  ++ date +%d-%m-%Y  game.sh: line 5: date: command not found  + DATE=  + NEWFILE=/var/log/servers/Game/startup_.log  + echo /var/log/servers/Game/startup_.log   I don't understand why it would say the command doesn't work, when I can go to the main console and run date and get a valid response.  Any help is greatly appreciated! How to share an encrypted storage on Windows, Mac OS X and Linux in a secure way I got a 2 TB drive that I have to use with both Windows 8.1 / Windows 10 and Yosemite to OS X / OS X El Capitan and maybe even on Linux.  I need to encrypt the volume. Or rather, I want to create two partitions: a 1.7 TB encrypted and unencrypted the remaining space.  Now I use Windows BitLocker to 512bit. On Mac and Linux nothing, obviously.  What do you recommend?  I saw TrueCrypt (and I read about all the confusion created after May 2014), of VeraCrypt, of GNUPG, Disklocker to read BitLocker on Unix.  But I feel lost and without a good idea.  And if I use TrueCrypt 7.1a waiting for new solutions such as precautions to prevent memory dumps and other potential crack?  And then how should I use TrueCrypt to format the drive? In GPT? MBR? Journaled? FAT? Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia. Why didn't Voldemort murder the Dursleys? Voldemort couldn't kill Harry as long as he called the Dursleys home. Why didn't he just murder the Dursleys? This would prevent Harry from being able to live there. Place each foot on a scale: can you add the two to find your weight? I frequent a blog from a British psychologist, and every Friday he likes to pose an interesting puzzle or riddle. The Monday after that he posts the answer. They're good fun, and IANAP but  made my it-might-not-be-quite-as-simple-as-that detector go off.  My question boils down to this: let's say I have two identical scales, and I stand on the scales with one foot on each scale. The scales read W1 and W2. Does my weight equal W1 + W2? Numbers to the Power of Zero I have been a witness to many a discussion about numbers to the power of zero, but I have never really been sold on any claims or explanations.  This is a three part question, the parts are as follows...    1) Why does $n^{0}=1$ when $n\neq 0$?  How does that get defined?  2) What is $0^{0}$?  Is it undefined?  If so, why does it not equal 1?  3) What is the equation that defines exponents?  I can easily write a small program to do it (see below), but what about in equation format?    I just want a little discussion about numbers to the power of zero, for some clarification.    Code for Exponents: (pseudo-code/Ruby)  def int find_exp (int x, int n){     int total = 1;     n.times{total*=x}     return total; } What is the correct pronunciation of the word “processes”? My Tier 5 YMS visa is set to start on September 30th, 2016 however, I want to get there earlier.  Can I enter the UK as a tourist, if I explain to border control/immigration that I am entering as a tourist and do not plan to work or do anything really until my Tier 5 visa starts?  I can find no official contact or information source on this with UK Visas Information, the British High Commission, etc. Regular expression to match a line that doesn't contain a word Do I make money in the stock market from other people losing money? Why Dumbledore kept mum until the very end of the "Deathly Hallows"? In Ubuntu, applications can be opened from a terminal. But sometimes it isn't clear what the appropriate command is to do this.  So, having an application open, how can I get the command used to launch it, without having to search anywhere (just by looking at it)? Retrieve globalpicklist/globalvalueset without SOQL Is it possible to retrieve the values of a Global Picklist/GlobalValueSet using Schema class without a SOQL ? Which way should arrows point in a collapsible accordion? Left/down … down/up?