does anyone know how to (a) and (b) into (A) and (B) in the following example?   \documentclass[11pt]{article} \usepackage{caption} \usepackage{subcaption} \usepackage[demo]{graphicx}  \begin{document}  \begin{figure}[hbtp] \centering         \begin{subfigure}[b]{0.49\linewidth}             \centering                   \includegraphics[scale=.23]{}             \caption{Picture one}         \end{subfigure}         \begin{subfigure}[b]{0.49\linewidth}              \centering              \includegraphics[scale=.23]{}               \caption{Picture two}         \end{subfigure} \caption{Two pictures} \end{figure}  \end{document}   Thanks!   Best   Thomas
I'm trying to get the subcaptions and captions in sanserif font and Uppercased. According the manual of the caption package this should be possible in the following way.However, this doesnt seem to work. Am I defining something in the wrong way here?  \documentclass{article} \usepackage{floatrow} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{caption} \floatsetup[figure]{subcapbesideposition = top}  \captionsetup{labelfont={sf,up}, labelsep=period, format = plain, singlelinecheck = false, textfont=rm, skip = 2pt} \captionsetup[subfloat]{labelfont = {up,sf},format = plain,textfont = rm,labelformat = simple, labelsep = period}  \begin{document}   \begin{figure}[h!]   \ffigbox[\textwidth]     {\begin{subfloatrow}         \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{A.pdf}}%         \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{B.pdf}}%       \end{subfloatrow}       \begin{subfloatrow}         \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{C.pdf}}%         \sidesubfloat[]{\includegraphics[width = 0.4\textwidth]{D.pdf}}%       \end{subfloatrow}}     {\caption{this is a caption}} \end{figure}  \end{document}
I have a firewall with these simple rules:  iptables -A INPUT -p tcp -s 127.0.0.1/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp -s 192.168.16.20/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp --dport 6000 -j REJECT   Now, suppose I am using TCPDUMP like this:  tcpdump port 6000   And I have host 192.168.16.21 trying to connect to port 6000.  Will/should tcpdump output some packets coming from 192.168.16.21? Creating multiline strings in JavaScript With services like Google Finance or Yahoo Finance it is very convenient to find the historical stock price metric of a listed company, but if the company is not listed, I can't find the data.  For example, I want to see the price metrics for Macromedia, which had been listed in 1993 on NASDAQ (MACR), then acquired by Adobe in 2005. How could I find its historical price metrics? If I buy a game from PSN on ps3 Is it permanently mine? Non-abelian group $G$ satisfying $(a \cdot b)^i=a^i \cdot b^i,$ for two consecutive integers. Given an example of a non-abelian group $G$ satisfying $(a \cdot b)^i=a^i \cdot b^i, \forall a, b \in G$ for two consecutive integers.   This is question 5 from Herstein Page 35. I have proved that conclusion holds for three positive integers.Thanks. What are 'return' pins? On a VGA connector, there are numerous 'ground' pins. Three of these are Red return, Green return and Blue return; But why does each color component have its own ground pin? Is `if (condition = value)` the correct syntax for comparison? Add increase/decrease tab indent buttons to the editor toolbar These should work by adding spaces or removing spaces from the beginning of the current line or every line between the start and end of a text selection (inclusive).  (edited this question to supplement ) Formula for calculating $\sum_{n=0}^{m}nr^n$ Is "logicalising" a valid word? Is logicalising a valid word, if the meaning was to make something supposedly 'illogical', logical? Converting string into datetime How can a single slit diffraction produce an interference pattern? How can a light passed though a single slit produce a similar interference pattern to the double-slit experiment? How does the diffracted wave produce the points of cancellation and reinforcement, if there is only one wave? Prepositions used with "inquire" I want to run Notepad++ twice. Like in this paint printscreen.  How I want it:    Not what I want:    Is this possible? What is time, does it flow, and if so what defines its direction? What does Pokémon Appraisal actually tell you in Pokémon Go? I would like to add my bibliography to my presentation in IEEE format. What should I add to my preamble and code.  \documentclass{beamer} \setbeamertemplate{footline}[page number]  \usepackage{graphicx} \usepackage{booktabs} \begin{document} \section{Reference} \begin{frame} \frametitle{Reference}  \end{frame}   I'm using the same bibTex which I use to make the IEEE paper. Coefficient growth in the power series $\sum u_n z^n = e^{1/(1-z)}$? Storage order vs Result order This is a spin-off question from .   says this on the subject of storage order (clustered index) and the output order     A lot of people believe that a clustered index guarantees a sort order on output. But that's not what it does; it guarantees a storage order on disk.   See, for example, .   I've read the blog post by Hugo Kornelis and understands that an index doesn't guarantee that the sql server reads the records in a specific order. Yet I have a hard time accepting that I can't assume this for my scenario?  CREATE TABLE [dbo].[SensorValues](   [DeviceId] [int] NOT NULL,   [SensorId] [int] NOT NULL,   [SensorValue] [int] NOT NULL,   [Date] [int] NOT NULL, CONSTRAINT [PK_SensorValues] PRIMARY KEY CLUSTERED  (   [DeviceId] ASC,   [SensorId] ASC,   [Date] DESC ) WITH (     FILLFACTOR=75,     DATA_COMPRESSION = PAGE,     PAD_INDEX = OFF,     STATISTICS_NORECOMPUTE = OFF,     SORT_IN_TEMPDB = OFF,     IGNORE_DUP_KEY = OFF,     ONLINE = OFF,     ALLOW_ROW_LOCKS = ON,     ALLOW_PAGE_LOCKS = ON)   ON [MyPartitioningScheme]([Date])   My original query was this:  SELECT TOP 1 SensorValue   FROM SensorValues   WHERE SensorId = 53     AND DeviceId = 3819     AND Date &lt; 1339225010   ORDER BY Date DESC   But I suggest that I could as well use this one (read below for my explanation):  SELECT TOP 1 SensorValue   FROM SensorValues   WHERE SensorId = 53     AND DeviceId = 3819     AND Date &lt; 1339225010   As you can see, my table rows are small (16bytes) and I've got only one index, a clustered. In my scenario, the table consists of 100.000.000 records at this moment (and this will most likely increase tenfold).  When the database server queries this table it has two ways of finding my rows, either it seeks the primary key and thereby reading and returning my values in desc. order of Date, or it has to do a full table scan. My conclusion is that a full table scan on all those records will be way too slow and the database server will therefore always seek the table via its primary key and thereby returning the values sorted by Date DESC finding the index of a max value in R