title: Placement of tablenotes in longtable with threeparttablex

text: How can I prevent a pagebreak of the `tablenotes` within `ThreePartTable` (`threeparttablex`) in the following MWE (btw it's a `landscape` table)? `\enlargethispage` seems to have no effect.               \documentclass[paper=letter]{article}     \usepackage{booktabs}     \usepackage{longtable}     \usepackage{threeparttablex}     \usepackage{lscape}          \begin{document}                    \begin{landscape}     \setlength\tabcolsep{2pt}     \scriptsize     \begin{ThreePartTable}     \begin{longtable}     {l     *{21}c     }     \caption{LA-ICP-MS U–Pb isotopic data for sample MH-28}\\         \toprule           &  & & &            \multicolumn{8}{c}{SUBHEADER\tnote{a}           }            & &%            \multicolumn{6}{c}{MORE SUBHEADER\tnote{b}}           &%            \multicolumn{2}{c}{SUBHEADER}  &\\     \cmidrule(l{2pt}r{2pt}){5-12}     \cmidrule(l{2pt}r{2pt}){14-19}     \cmidrule(l{2pt}r{2pt}){20-21}     %     {sample no.} &%     {Col.} &%     {x} &%     {f} &%     {i} &%     {Col.} &%      {Col.} &%         {Col.} &%     {Col.}  &%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.} &%     {Col.}&%     {Col.}&%     %     {Col.} & {Col.}%     \\          \midrule         \endfirsthead     \multicolumn{22}{l}%         {\tablename\ \thetable\  \textit{(Continued)}} \\         \toprule           &  & & &            \multicolumn{8}{c}{SUBHEADER\tnote{a}           }            & &%            \multicolumn{6}{c}{MORE SUBHEADER\tnote{b}}           &%            \multicolumn{2}{c}{SUBHEADER}  &\\     \cmidrule(l{2pt}r{2pt}){5-12}     \cmidrule(l{2pt}r{2pt}){14-19}     \cmidrule(l{2pt}r{2pt}){20-21}     %     {sample no.} &%     {Col.} &%     {x} &%     {f} &%     {i} &%     {Col.} &%      {Col.} &%         {Col.} &%     {Col.}  &%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.}&%     {Col.} &%     {Col.} &%     {Col.}&%     {Col.}&%     %     {Col.} & {Col.} \\          \midrule         \endhead     \bottomrule     \multicolumn{22}{r}{\textit{(Continued)}} \\         \endfoot     \bottomrule         \endlastfoot     sample\_5\_012 &        597 &        552 &       0.87 &    0.06641 &    0.00166 &    0.31038 &    0.01076 &    0.03474 &    0.00083 &    0.01092 &    0.00038 &       0.69 &        220 &          5 &        274 &          8 &        819 &         53 &        220 &          5 &       19.7 \\          sample\_8\_016 &        664 &        424 &       0.60 &    0.05545 &    0.00078 &    0.30183 &    0.00577 &    0.03947 &    0.00051 &    0.01292 &    0.00028 &       0.68 &        250 &          3 &        268 &          5 &        430 &         30 &        250 &          3 &        6.7 \\          sample\_15\_024 &        634 &        604 &       0.89 &    0.05967 &    0.00449 &    0.33649 &    0.02815 &    0.04090 &    0.00059 &    0.01264 &    0.00016 &       0.45 &        258 &          4 &        295 &         21 &        592 &        158 &        258 &          4 &       12.5 \\          sample\_2\_009 &         64 &         25 &       0.37 &    0.05609 &    0.00164 &    0.32120 &    0.01034 &    0.04153 &    0.00038 &    0.01293 &    0.00012 &       0.35 &        262 &          2 &        283 &          8 &        456 &         65 &        262 &          2 &        7.4 \\          sample\_10\_018 &       1124 &        998 &       0.83 &    0.07956 &    0.00103 &    0.45438 &    0.00835 &    0.04195 &    0.00055 &    0.01947 &    0.00091 &       0.71 &        265 &          3 &        380 &          6 &       1186 &         26 &        265 &          3 &       30.3 \\          sample\_62\_081 &        113 &         61 &       0.51 &    0.07375 &    0.01142 &    0.43177 &    0.06874 &    0.04246 &    0.00060 &    0.01281 &    0.00031 &       0.15 &        268 &          4 &        364 &         49 &       1035 &        315 &        268 &          4 &       26.4 \\          sample\_14\_023 &        536 &         85 &       0.15 &    0.05294 &    0.00069 &    0.33703 &    0.00596 &    0.04608 &    0.00055 &    0.01396 &    0.00024 &       0.68 &        290 &          3 &        295 &          5 &        326 &         30 &        290 &          3 &        1.7 \\          sample\_41\_056 &        237 &        106 &       0.42 &    0.05411 &    0.00076 &    0.35000 &    0.00553 &    0.04696 &    0.00034 &    0.01409 &    0.00021 &       0.46 &        296 &          2 &        305 &          4 &        376 &         32 &        296 &          2 &        3.0 \\          sample\_72\_092 &        267 &        104 &       0.36 &    0.05328 &    0.00069 &    0.37697 &    0.00560 &    0.05126 &    0.00037 &    0.01616 &    0.00024 &       0.49 &        322 &          2 &        325 &          4 &        341 &         28 &        322 &          2 &        0.9 \\          sample\_6\_014 &        720 &        439 &       0.57 &    0.05795 &    0.00064 &    0.47043 &    0.00684 &    0.05899 &    0.00056 &    0.01808 &    0.00029 &       0.65 &        369 &          3 &        391 &          5 &        528 &         23 &        369 &          3 &        5.6 \\          sample\_20\_030 &        966 &        180 &       0.18 &    0.06941 &    0.00078 &    0.85861 &    0.01444 &    0.08972 &    0.00086 &    0.02725 &    0.00026 &       0.70 &        554 &          5 &        629 &          8 &        911 &         22 &        554 &          5 &       11.9 \\          sample\_68\_088 &         63 &         33 &       0.49 &    0.06329 &    0.00101 &    0.83480 &    0.01490 &    0.09581 &    0.00076 &    0.02805 &    0.00048 &       0.45 &        590 &          4 &        616 &          8 &        718 &         32 &        590 &          4 &        4.2 \\          sample\_69\_089 &        503 &        210 &       0.39 &    0.06085 &    0.00061 &    0.80353 &    0.00990 &    0.09579 &    0.00069 &    0.03122 &    0.00044 &       0.58 &        590 &          4 &        599 &          6 &        634 &         21 &        590 &          4 &        1.5 \\          sample\_3\_010 &        800 &         71 &       0.08 &    0.06060 &    0.00061 &    0.82852 &    0.01011 &    0.09924 &    0.00069 &    0.03362 &    0.00040 &       0.57 &        610 &          4 &        613 &          6 &        625 &         22 &        610 &          4 &        0.5 \\          sample\_34\_047 &        696 &        119 &       0.16 &    0.06577 &    0.00071 &    0.93592 &    0.01397 &    0.10320 &    0.00084 &    0.03154 &    0.00026 &       0.66 &        633 &          5 &        671 &          7 &        799 &         23 &        633 &          5 &        5.7 \\          sample\_42\_057 &         73 &         46 &       0.59 &    0.06303 &    0.00113 &    0.90923 &    0.01753 &    0.10475 &    0.00072 &    0.03049 &    0.00043 &       0.37 &        642 &          4 &        657 &          9 &        709 &         38 &        642 &          4 &        2.3 \\          sample\_22\_033 &        891 &        283 &       0.30 &    0.07147 &    0.00150 &    1.13515 &    0.02693 &    0.11519 &    0.00093 &    0.03487 &    0.00029 &       0.46 &        703 &          5 &        770 &         13 &        971 &         43 &        703 &          5 &        8.7 \\          sample\_11\_020 &        615 &        162 &       0.25 &    0.07379 &    0.00075 &    1.53838 &    0.02019 &    0.15121 &    0.00105 &    0.04561 &    0.00031 &       0.60 &        908 &          6 &        946 &          8 &       1036 &         20 &        908 &          6 &        4.0 \\          sample\_45\_060 &        343 &         86 &       0.24 &    0.07127 &    0.00066 &    1.59320 &    0.01913 &    0.16205 &    0.00123 &    0.04709 &    0.00057 &       0.64 &        968 &          7 &        968 &          7 &        965 &         19 &        968 &          7 &        0.0 \\          sample\_67\_087 &        178 &         37 &       0.19 &    0.07137 &    0.00090 &    1.60246 &    0.02717 &    0.16284 &    0.00138 &    0.04931 &    0.00041 &       0.60 &        973 &          8 &        971 &         11 &        968 &         24 &        973 &          8 &       -0.2 \\          sample\_76\_097 &        184 &         58 &       0.30 &    0.07231 &    0.00072 &    1.72390 &    0.02155 &    0.17290 &    0.00130 &    0.05341 &    0.00069 &       0.60 &       1028 &          7 &       1017 &          8 &        995 &         19 &        995 &         19 &       -1.1 \\          sample\_79\_100 &        138 &         55 &       0.37 &    0.07230 &    0.00087 &    1.66670 &    0.02324 &    0.16727 &    0.00119 &    0.04896 &    0.00059 &       0.51 &        997 &          7 &        996 &          9 &        994 &         23 &        997 &          7 &       -0.1 \\          sample\_16\_026 &         74 &         32 &       0.41 &    0.07245 &    0.00247 &    1.68496 &    0.06421 &    0.16868 &    0.00153 &    0.05099 &    0.00047 &       0.38 &       1005 &          8 &       1003 &         24 &        999 &         66 &        999 &         66 &       -0.2 \\          sample\_80\_101 &        215 &         70 &       0.30 &    0.07302 &    0.00080 &    1.67310 &    0.02173 &    0.16642 &    0.00115 &    0.05004 &    0.00060 &       0.54 &        992 &          6 &        998 &          8 &       1015 &         21 &       1015 &         21 &        0.6 \\          sample\_54\_071 &        380 &        111 &       0.28 &    0.07329 &    0.00071 &    1.88310 &    0.02479 &    0.18646 &    0.00166 &    0.05640 &    0.00068 &       0.68 &       1102 &          9 &       1075 &          9 &       1022 &         20 &       1022 &         20 &       -2.5 \\          sample\_1\_008 &        148 &         57 &       0.36 &    0.07348 &    0.00081 &    1.76520 &    0.02302 &    0.17438 &    0.00122 &    0.05089 &    0.00061 &       0.53 &       1036 &          7 &       1033 &          8 &       1027 &         21 &       1027 &         21 &       -0.3 \\          sample\_50\_066 &        518 &         59 &       0.11 &    0.07356 &    0.00066 &    1.70400 &    0.02063 &    0.16811 &    0.00136 &    0.05052 &    0.00066 &       0.67 &       1002 &          8 &       1010 &          8 &       1029 &         18 &       1029 &         18 &        0.8 \\          sample\_39\_053 &        161 &         49 &       0.28 &    0.07360 &    0.00088 &    1.68360 &    0.02365 &    0.16586 &    0.00121 &    0.04927 &    0.00059 &       0.52 &        989 &          7 &       1002 &          9 &       1031 &         24 &       1031 &         24 &        1.3 \\          sample\_7\_015 &        191 &         22 &       0.11 &    0.07386 &    0.00081 &    2.05020 &    0.04325 &    0.20148 &    0.00363 &    0.05729 &    0.00086 &       0.85 &       1183 &         19 &       1132 &         14 &       1038 &         21 &       1038 &         21 &       -4.5 \\          sample\_75\_095 &        115 &         63 &       0.52 &    0.07436 &    0.00097 &    1.76760 &    0.03250 &    0.17284 &    0.00225 &    0.05443 &    0.00147 &       0.70 &       1028 &         12 &       1034 &         12 &       1051 &         25 &       1051 &         25 &        0.6 \\          sample\_4\_011 &        313 &        112 &       0.34 &    0.07471 &    0.00102 &    1.64778 &    0.02973 &    0.15997 &    0.00130 &    0.04819 &    0.00038 &       0.59 &        957 &          7 &        989 &         11 &       1061 &         28 &       1061 &         28 &        3.2 \\          sample\_46\_062 &         92 &         61 &       0.63 &    0.07483 &    0.00157 &    1.70980 &    0.03796 &    0.16559 &    0.00119 &    0.04824 &    0.00058 &       0.33 &        988 &          7 &       1012 &         14 &       1064 &         43 &       1064 &         43 &        2.4 \\          sample\_55\_072 &         46 &         22 &       0.45 &    0.07486 &    0.00112 &    1.68860 &    0.02810 &    0.16368 &    0.00118 &    0.04840 &    0.00063 &       0.44 &        977 &          7 &       1004 &         11 &       1065 &         30 &       1065 &         30 &        2.7 \\          sample\_35\_048 &         90 &         24 &       0.25 &    0.07514 &    0.00098 &    1.82660 &    0.02723 &    0.17614 &    0.00129 &    0.05759 &    0.00098 &       0.48 &       1046 &          7 &       1055 &         10 &       1072 &         26 &       1072 &         26 &        0.9 \\          sample\_18\_028 &        561 &         85 &       0.14 &    0.07559 &    0.00070 &    1.92580 &    0.02219 &    0.18479 &    0.00126 &    0.05404 &    0.00065 &       0.60 &       1093 &          7 &       1090 &          8 &       1084 &         19 &       1084 &         19 &       -0.3 \\          sample\_29\_041 &        175 &         49 &       0.26 &    0.07570 &    0.00091 &    1.85930 &    0.02789 &    0.17804 &    0.00160 &    0.05271 &    0.00074 &       0.60 &       1056 &          9 &       1067 &         10 &       1087 &         24 &       1087 &         24 &        1.0 \\          sample\_51\_068 &        261 &         55 &       0.20 &    0.07587 &    0.00074 &    1.89430 &    0.02238 &    0.18110 &    0.00120 &    0.05556 &    0.00067 &       0.56 &       1073 &          7 &       1079 &          8 &       1092 &         20 &       1092 &         20 &        0.6 \\          sample\_12\_021 &         76 &         28 &       0.35 &    0.07675 &    0.00137 &    2.00527 &    0.04224 &    0.18950 &    0.00139 &    0.05692 &    0.00041 &       0.41 &       1119 &          8 &       1117 &         14 &       1115 &         34 &       1115 &         34 &       -0.2 \\          sample\_57\_075 &        401 &         78 &       0.18 &    0.07679 &    0.00071 &    2.04520 &    0.02418 &    0.19312 &    0.00141 &    0.05962 &    0.00078 &       0.62 &       1138 &          8 &       1131 &          8 &       1116 &         19 &       1116 &         19 &       -0.6 \\          sample\_65\_084 &        266 &         74 &       0.26 &    0.07710 &    0.00073 &    1.93020 &    0.02255 &    0.18157 &    0.00123 &    0.05217 &    0.00063 &       0.59 &       1076 &          7 &       1092 &          8 &       1124 &         18 &       1124 &         18 &        1.5 \\          sample\_58\_076 &        601 &        159 &       0.25 &    0.07752 &    0.00091 &    1.90717 &    0.02972 &    0.17844 &    0.00146 &    0.05354 &    0.00043 &       0.59 &       1058 &          8 &       1084 &         10 &       1135 &         23 &       1135 &         23 &        2.4 \\          sample\_48\_064 &        187 &         55 &       0.28 &    0.07758 &    0.00078 &    1.95780 &    0.02532 &    0.18325 &    0.00150 &    0.05632 &    0.00073 &       0.63 &       1085 &          8 &       1101 &          9 &       1136 &         20 &       1136 &         20 &        1.5 \\          sample\_70\_090 &       1088 &        142 &       0.12 &    0.07760 &    0.00065 &    1.94820 &    0.02081 &    0.18211 &    0.00120 &    0.05477 &    0.00071 &       0.62 &       1078 &          7 &       1098 &          7 &       1137 &         16 &       1137 &         16 &        1.8 \\          sample\_9\_017 &        707 &         67 &       0.09 &    0.07766 &    0.00072 &    1.98460 &    0.02546 &    0.18535 &    0.00142 &    0.05560 &    0.00042 &       0.62 &       1096 &          8 &       1110 &          9 &       1138 &         17 &       1138 &         17 &        1.3 \\          sample\_28\_040 &        236 &         93 &       0.37 &    0.07769 &    0.00071 &    2.10680 &    0.02344 &    0.19631 &    0.00126 &    0.05795 &    0.00070 &       0.57 &       1155 &          7 &       1151 &          8 &       1139 &         18 &       1139 &         18 &       -0.3 \\          sample\_32\_045 &        615 &         15 &       0.02 &    0.07771 &    0.00071 &    2.05090 &    0.02447 &    0.19152 &    0.00146 &    0.06149 &    0.00086 &       0.64 &       1130 &          8 &       1133 &          8 &       1139 &         18 &       1139 &         18 &        0.3 \\          sample\_66\_086 &        603 &        111 &       0.17 &    0.07769 &    0.00068 &    2.14310 &    0.02462 &    0.20000 &    0.00150 &    0.05516 &    0.00061 &       0.65 &       1175 &          8 &       1163 &          8 &       1139 &         17 &       1139 &         17 &       -1.0 \\          sample\_77\_098 &         67 &         39 &       0.55 &    0.07788 &    0.00093 &    2.25830 &    0.03244 &    0.21035 &    0.00166 &    0.06047 &    0.00079 &       0.56 &       1231 &          9 &       1199 &         10 &       1144 &         23 &       1144 &         23 &       -2.7 \\          sample\_49\_065 &        259 &         77 &       0.28 &    0.07812 &    0.00078 &    2.08720 &    0.02524 &    0.19377 &    0.00132 &    0.05760 &    0.00069 &       0.56 &       1142 &          7 &       1145 &          8 &       1150 &         20 &       1150 &         20 &        0.3 \\          sample\_53\_070 &        241 &         78 &       0.30 &    0.07811 &    0.00105 &    2.04369 &    0.03374 &    0.18976 &    0.00134 &    0.05689 &    0.00039 &       0.50 &       1120 &          7 &       1130 &         11 &       1150 &         27 &       1150 &         27 &        0.9 \\          sample\_59\_077 &        566 &         97 &       0.16 &    0.07831 &    0.00071 &    2.18410 &    0.02590 &    0.20262 &    0.00154 &    0.06194 &    0.00081 &       0.64 &       1189 &          8 &       1176 &          8 &       1155 &         18 &       1155 &         18 &       -1.1 \\          sample\_63\_082 &        938 &        154 &       0.15 &    0.07832 &    0.00068 &    2.04960 &    0.02315 &    0.18987 &    0.00137 &    0.05157 &    0.00067 &       0.64 &       1121 &          7 &       1132 &          8 &       1155 &         16 &       1155 &         16 &        1.0 \\          sample\_44\_059 &       1129 &        233 &       0.19 &    0.07847 &    0.00077 &    1.87500 &    0.03053 &    0.17344 &    0.00225 &    0.04472 &    0.00192 &       0.80 &       1031 &         12 &       1072 &         11 &       1159 &         20 &       1159 &         20 &        3.8 \\          sample\_64\_083 &        215 &         68 &       0.30 &    0.07846 &    0.00078 &    2.13130 &    0.02589 &    0.19701 &    0.00136 &    0.05750 &    0.00069 &       0.57 &       1159 &          7 &       1159 &          8 &       1159 &         19 &       1159 &         19 &        0.0 \\          sample\_43\_058 &         45 &         32 &       0.67 &    0.07873 &    0.00134 &    2.16880 &    0.04132 &    0.20015 &    0.00172 &    0.05757 &    0.00081 &       0.45 &       1176 &          9 &       1171 &         13 &       1165 &         34 &       1165 &         34 &       -0.4 \\          sample\_19\_029 &        206 &         58 &       0.27 &    0.07890 &    0.00077 &    2.25440 &    0.03000 &    0.20735 &    0.00187 &    0.05934 &    0.00077 &       0.68 &       1215 &         10 &       1198 &          9 &       1170 &         19 &       1170 &         19 &       -1.4 \\          sample\_17\_027 &       1052 &         39 &       0.03 &    0.07894 &    0.00065 &    2.01476 &    0.02263 &    0.18510 &    0.00154 &    0.05543 &    0.00046 &       0.72 &       1095 &          8 &       1120 &          8 &       1171 &         16 &       1171 &         16 &        2.2 \\          sample\_26\_038 &        488 &        140 &       0.27 &    0.07907 &    0.00070 &    2.14030 &    0.02450 &    0.19639 &    0.00141 &    0.05700 &    0.00074 &       0.63 &       1156 &          8 &       1162 &          8 &       1174 &         18 &       1174 &         18 &        0.5 \\          sample\_13\_022 &        175 &         41 &       0.22 &    0.07910 &    0.00079 &    2.32380 &    0.03095 &    0.21300 &    0.00187 &    0.06711 &    0.00114 &       0.66 &       1245 &         10 &       1220 &          9 &       1175 &         20 &       1175 &         20 &       -2.0 \\          sample\_37\_051 &         31 &         14 &       0.44 &    0.07957 &    0.00127 &    2.11760 &    0.03973 &    0.19307 &    0.00189 &    0.06030 &    0.00096 &       0.53 &       1138 &         10 &       1155 &         13 &       1186 &         32 &       1186 &         32 &        1.5 \\          sample\_74\_094 &         66 &         37 &       0.52 &    0.07966 &    0.00112 &    2.20670 &    0.03526 &    0.20105 &    0.00155 &    0.05839 &    0.00076 &       0.48 &       1181 &          8 &       1183 &         11 &       1189 &         26 &       1189 &         26 &        0.2 \\          sample\_73\_093 &        370 &         86 &       0.22 &    0.07978 &    0.00076 &    2.12390 &    0.02481 &    0.19272 &    0.00131 &    0.05831 &    0.00082 &       0.58 &       1136 &          7 &       1157 &          8 &       1192 &         18 &       1192 &         18 &        1.8 \\          sample\_27\_039 &        925 &        231 &       0.23 &    0.07983 &    0.00069 &    2.00430 &    0.02130 &    0.18210 &    0.00111 &    0.05542 &    0.00061 &       0.58 &       1078 &          6 &       1117 &          7 &       1193 &         17 &       1193 &         17 &        3.5 \\          sample\_56\_074 &        935 &        270 &       0.27 &    0.07986 &    0.00079 &    1.64890 &    0.04587 &    0.14818 &    0.00385 &    0.04640 &    0.00097 &       0.93 &        891 &         22 &        989 &         18 &       1194 &         20 &       1194 &         20 &        9.9 \\          sample\_52\_069 &        339 &         92 &       0.26 &    0.08018 &    0.00078 &    2.20630 &    0.02614 &    0.19963 &    0.00136 &    0.05742 &    0.00069 &       0.57 &       1173 &          7 &       1183 &          8 &       1201 &         19 &       1201 &         19 &        0.8 \\          sample\_60\_078 &        153 &         54 &       0.33 &    0.08037 &    0.00080 &    2.40630 &    0.02937 &    0.21715 &    0.00152 &    0.05705 &    0.00068 &       0.58 &       1267 &          8 &       1244 &          9 &       1206 &         19 &       1206 &         19 &       -1.8 \\          sample\_40\_054 &        776 &         59 &       0.07 &    0.08042 &    0.00075 &    2.31440 &    0.02736 &    0.20887 &    0.00152 &    0.06238 &    0.00081 &       0.61 &       1223 &          8 &       1217 &          8 &       1207 &         19 &       1207 &         19 &       -0.5 \\          sample\_78\_099 &        889 &        122 &       0.13 &    0.08091 &    0.00074 &    2.27562 &    0.03090 &    0.20399 &    0.00168 &    0.06092 &    0.00051 &       0.67 &       1197 &          9 &       1205 &         10 &       1219 &         17 &       1219 &         17 &        0.7 \\          sample\_31\_044 &        975 &         67 &       0.06 &    0.08101 &    0.00072 &    1.72390 &    0.01931 &    0.15423 &    0.00105 &    0.03562 &    0.00057 &       0.61 &        925 &          6 &       1017 &          7 &       1222 &         18 &       1222 &         18 &        9.0 \\          sample\_36\_050 &        656 &         76 &       0.11 &    0.08140 &    0.00072 &    2.21600 &    0.02496 &    0.19758 &    0.00136 &    0.06002 &    0.00066 &       0.62 &       1162 &          7 &       1186 &          8 &       1231 &         17 &       1231 &         17 &        2.0 \\          sample\_23\_034 &        317 &         95 &       0.28 &    0.08145 &    0.00075 &    2.45010 &    0.02862 &    0.21820 &    0.00157 &    0.06418 &    0.00071 &       0.62 &       1272 &          8 &       1257 &          8 &       1232 &         18 &       1232 &         18 &       -1.2 \\          sample\_25\_036 &        165 &         52 &       0.29 &    0.08160 &    0.00082 &    2.30110 &    0.03254 &    0.20452 &    0.00205 &    0.06704 &    0.00080 &       0.70 &       1200 &         11 &       1213 &         10 &       1236 &         20 &       1236 &         20 &        1.1 \\          \end{longtable}       \begin{tablenotes}         \item[a]{Absolute errors at 1-$\sigma$ level}         \item[b]{Absolute errors (Ma) at 1-$\sigma$ level}         \item[c]{Error correlation}         \item[d]{Discordance}         \end{tablenotes}     \end{ThreePartTable}     \end{landscape}               \end{document}      I'm also wondering why threeparttablex produces a larger space between the tablenotes and the bottomrule of the table when using `longtable`.


title: In beamer, problem positioning images (logo and background) and text in a robust way when creating my own template (title frame and following frames)

text: I have now been struggling for a few days on what I thought should be fairly easy. I am trying to create a template resembling my university's powerpoint template.   1. Title page: I am trying to import the title page from the powerpoint, that I converted in pdf. After struggling to centre it, I also tried to move the title up so that it doesn't overlap the darkest area of the image. As you can see in the attached code, this was probably done in a clumsy way, since the image easily gets off-centre depending on the size of the title.   2. Frame template: Here I only want a simple rectangle on the left hand side, the logo of the university on the top left and the frame title to be right-justified. Again, I thought I succeeded in doing that (albeit in a clumsy way) but it proved extremely poorly robust when I tried to fill the slides: a simple bullet list makes the rectangle on the side disappear. Any suggestion for a more robust implementation for both slides? I also attach the `tex` and `sty` files. As a new user, I cannot attach any picture, but a pdf giving an idea of what I am trying to achieve and what is going wrong can be found here: example with images The problem with the front page manifests for example with a single line title, the problem with the following frame manifests with the bullet list when the rectangle on the left edge disappears. `tex` file:               \documentclass{beamer}     \usepackage{tikz}     \usepackage{multimedia}     \usepackage[overlay]{textpos}          \usetheme{GUtemplate}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{helvet}          \title{\textbf{Thesis \\title}}     \subtitle{PhD examination \\ 12 November 2012}     \author{\textbf{My Name}}     \date{\today}     \institute{University of Glasgow}          \begin{document}          %% Title Frame %%     \begin{frame}     \titlepage     \end{frame}          %% Outline Frame %%     \begin{frame}     \frametitle{Outline}     This is the outline of the thesis:     \begin{itemize}         \item<2-> Part 1         \item<3-> Part 2     \end{itemize}     \end{frame}                    \begin{frame}     \frametitle{Another Frame}     blablablblablllblablablaaaaaaaaaaaablablabla \ldots     \end{frame}          \end{document}      and the `sty` file:               \ProvidesPackage{beamerthemeGUtemplate}[2011/09/20]          %% Declare colors %%     \definecolor{DarkBlue}{RGB}{0,82,136}     \definecolor{USMPurple}{RGB}{50,35,109}     %%          %% Custom title page %%     \defbeamertemplate*{title page}{customized}[1][] {       \begin{textblock*}{\paperwidth}(-1.02cm, -3.2cm)         \includegraphics[width=\paperwidth, height=\paperheight]{titlepage}       \end{textblock*}        \centering       \vspace{-1.5cm}       \usebeamerfont{title}\inserttitle\par        \bigskip \medskip       \usebeamerfont{author}\insertauthor\par       \usebeamerfont{institute}\insertinstitute\par       \begin{textblock*}{\paperwidth}(-1.3cm,-4.7cm)         \begin{flushright}             \setbeamerfont{subtitle}{size=\fontsize{7}{8}}         \usebeamercolor[DarkBlue]{subtitle}             {\fontfamily{times}\selectfont \bf{\insertsubtitle}}         \end{flushright}       \end{textblock*}     }     %%          %% Custom slides %%     \setbeamertemplate{frametitle}[default][right]     \setbeamersize{text margin left=1cm, text margin right=1cm}     \setbeamerfont{frametitle}{size={\fontsize{15}{17}}}          \addtobeamertemplate{frametitle}{}{       \begin{textblock*}{0cm}(-0.686cm,-0.828cm)         \includegraphics[width=0.35\paperwidth, height=0.35\paperheight,keepaspectratio]{logo}       \end{textblock*}       \begin{textblock*}{0cm}(-1cm,-0.895cm)         \begin{tikzpicture}           \draw<1>[DarkBlue,fill] (0,-\paperheight) rectangle (0.3,\paperheight);         \end{tikzpicture}       \end{textblock*}     }     %%               \usecolortheme[named=DarkBlue]{structure}     \setbeamercolor{title page}{fg=DarkBlue}     \setbeamercolor{logo}{bg=white}     \setbeamercolor{frametitle}{fg=white,bg=DarkBlue}


title: Computing a simple maths calculation and use the result as page numbers in the Table of Contents

text: Following up this question here, I am looking for a way to compute a simple maths calculation inside the document and let the result of this calculation be the value that appears as page number in the table of content. The following code snippet creates an entry in the table of contents:               \addtocontents{toc}{%     \protect\contentsline {section}{%     \protect\numberline {\thesection}#1}{xxxxxxxxxx}}}      Where you find `xxxxxxxxxx` (= the pagenumber) in this code snippet, there should be something like `\thepage minus 1`. This result will then be shown as page number in the table of contents. What did not work was to insert `\theprevpage` as `xxxxxxxxxx` and to let               \newcounter{prevpage}     \setcounter{prevpage}{\value{page}}\addtocounter{prevpage}{-1}      precede the above snippet. (Usually this, of course, works and is a very fine solution. But In my case of using ledpar the way I do it doesn't work.) So it seems that in my particular case it is not possible to "outsource" the computation. So my question now is: Can't I just somehow replace `xxxxxxxxxx` by something like `\resultOf{\thepage\minus{1}}` in order to compute the calculation directly **inside** the brackets of the `\addtocontents`-argument, so that the seulting number is written in the *.toc-file? (I am looking for the easiest possible way... or any other method the get the "pagenumber-minus-one" in the brackets without typing it manually.)


title: How can I insert a small image in a side note?

text: I want to insert small images in sidenotes. Is it possible (everything seems to)? How could I do it?


the logo icon of Claymath how to draw a FigureEight Complement esker curve like the icon of Claymath? http://www.claymath.org/about-cmi/icon


title: lstlisting border bug when breaking lines

text: I have a certain bug regarding `listings`. I have used the `\lstset` command to configure my `lstlisting` environment. Somehow, when I have a line that is too long to fit into one row the listing breaks it properly, but somehow the border gets the same colour as the font. ![](http://i.stack.imgur.com/E7chl.png) Here is the `\lstset`:               \lstnewenvironment{pascalCode}[1][]     {       \lstset{           backgroundcolor=\color{lightgrey},         breaklines=true,         basicstyle=\footnotesize,         keywordstyle=\color{Blue},         commentstyle=\color{DarkGreen}\textit,         numbers=left,         numberstyle=\footnotesize,         stringstyle=\color{red},         showspaces = false,         showstringspaces = false,         tabsize = 2,         %numbers=left,         %numbersyle=\tiny         frame=single,         xleftmargin=5pt,         xrightmargin=3pt,         language =  Pascal,         aboveskip = 20pt,         #1       }     }{}      If you have any ideas how to fix that please reply.


title: Box around several but different items in an itemize environment

text: I am trying to highlight, at the end of my slide, several items in a list with a box in something similar as in the method shown in Box around a few items in an itemize environment. The difference is that instead of only one box I want to use two boxes as I compare the elements with another block. I used the following code:               \documentclass[pdf,10pt,xcolor=table]{beamer}         \usepackage{xparse}%  For \NewDocumentCommand         \usepackage{calc}%    For the \widthof macro         \usepackage{tikz}         \usetikzlibrary{calc}         \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};}         %         \makeatletter         %         \NewDocumentCommand{\DrawBox}{s O{}}{%             \tikz[overlay,remember picture]{             \IfBooleanTF{#1}{%                 \coordinate (RightPoint) at ($(left |- right)+(\linewidth-\labelsep-\labelwidth,0.0)$);                 }{%                 \coordinate (RightPoint) at (right.east);                 }%             \draw[red,#2]                 ($(left)+(-0.2em,0.9em)$) rectangle                 ($(RightPoint)+(0.2em,-0.3em)$);}             }              \NewDocumentCommand{\DrawBoxWide}{s O{}}{%             \tikz[overlay,remember picture]{             \IfBooleanTF{#1}{%                  \coordinate (RightPoint) at ($(left |- right)+(\linewidth-\labelsep-\labelwidth,0.0)$);                  }{%                  \coordinate (RightPoint) at (right.east);                  }%              \draw[red,#2]                  ($(left)+(-\labelwidth,0.9em)$) rectangle                  ($(RightPoint)+(0.2em,-0.3em)$);}              }         %         \makeatother         %         \begin{document}             \begin{frame}                 \begin{block}{\centering Unsteady models}                     \begin{itemize}\setbeamertemplate{itemize  item}[triangle]\small                         \item\tikzmark{left}\textbf{Aerodynamics}                             \begin{itemize}\small                                 \item[+] \textbf<3->{Accuracy}                                 \item[+] \textbf<3->{Flow physics}\tikzmark{right}                             \end{itemize}                         \item\tikzmark{left}\textbf{Structure}                             \begin{itemize}\small                         \item[+] \textbf<3->{Full wing flexibility}\tikzmark{right}                             \end{itemize}                         \item \textbf{Implementation}                             \begin{itemize}\small                                 \item[-] Complex formulation                                 \item[-] High computational load                             \end{itemize}                     \end{itemize}                 \end{block}                 \only<3->{\DrawBoxWide[thick, green, fill=green, fill opacity=.25]}             \end{frame}         \end{document}      Additionally, I am not completely satisfied with the box solution as I am using the list in a block which has a background color and thus diminishes the effect of the surrounding box. I saw that the tikz style can also highlight parts of a list, as in Beamer overlay box around text - the correct way? and Highlighting in beamer using TikZ nodes, but I didn't see an example around several items without any blank between the items. Furthermore in the example given the item marker is included by `\DrawBoxWide*{}` which is not the case for me. Do you have a solution, for these issues?


title: chip Lyx 4.2 latex

text: I am a recent user of Lyx. In settings, I have chosen the French language, but after compiling my text, symbols Itemize (dot, dash, star, small point) all have the same shape (the dash). At each level, it is always a tiret. I have tried to add to the beginning of the document this TeX command `\noextrasfrancais` but still have the same problem.


title: Is there an easy way to change the font and size for Chapter Heading in Memoir?

text: I'm a total TeX newb - please be nice! :-) How can I change the font and size of Chapter headings? I don't mind where it's placed on the page - but would like it to be a sans-serif font and perhaps a bit bigger? These are un-named chapters... they just need to say Chapter 1, Chapter 2, etc. I tried to post pictures of my code and the results but the forum said I have to earn 10 reputation points to post images. :-(               \documentclass[10pt]{memoir}          \usepackage{palatino}     \usepackage[margin=1in, paperwidth=6in, paperheight=9in]{geometry}     \usepackage{indentfirst}     \pagestyle{plain}          \begin{document}               \input{chapter01.tex}          \input{chapter02.tex}          \end{document}


title: Adjusting biblatex bibliography style

text: I previously asked a question about adjusting the style of `natbib` 1, but gave up an switched to `biblatex`. I am working on my bachelor's thesis and need help adapting the bibliography and citation style to match my schools requirements. Below is what I've got so far:               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[norsk]{babel}               \usepackage[style=authoryear-comp,firstinits=true,backend=biber,maxcitenames=3,citetracker=true,maxbibnames=99,dashed=false]{biblatex}          \DeclareNameAlias{sortname}{last-first}     \renewcommand*{\nameyeardelim}{\addcomma\space}          \addbibresource{bachelor.bib}     \usepackage{breakurl}          %from http://tex.stackexchange.com/questions/48846/biblatex-et-al-beginning-from-second-citation     \usepackage{xpatch}          \AtEveryCitekey{\ifciteseen{}{\clearfield{namehash}}}          \xpatchbibmacro{cite}       {\printnames{labelname}}       {\ifciteseen          {\printnames{labelname}}          {\printnames[][1-99]{labelname}}}       {}       {}          \xpatchbibmacro{textcite}       {\printnames{labelname}}       {\ifciteseen          {\printnames{labelname}}          {\printnames[][1-99]{labelname}}}       {}       {}          \begin{document}     \printbibliography[title=Kilder]     \addcontentsline{toc}{chapter}{Kilder}     \end{document}      Using the above `@book` is showing correctly both in citations and in the bibliography if there's a single author. With multiple authors there is "og" (Norwegian translation of "and") between the two last authors. I would like to change this to &. `@inbook` needs some modifications to the bibliography. Currently it's: > Author(s) (year). Title. I: _booktitle_. Red. av editor(s). Address: > Publisher, s. pagefrom-pageto I need this to be: > Author(s) (year). Title. I editor(s) (red.), _booktitle_ (s. pagefrom- > pageto). Address: Publisher In the above the "I" is Norwegian translation of "In" and "mfl." is Norwegian translation of "et al.". Also I can not figure out how to prevent that "et al" is being translated to "mfl.". I guess I would need to do something like:               \addto\captionsnorsk{%       \renewcommand{\something}%         {et al}%     }      but I can't figure out what to replace something with. Thanks.


title: Generate file write handles on the fly

text: I am experimenting a little bit with automatic generation of file handles via `\newwrite`. I want to achieve following behaviour:   * A user provides a list of file categories, for example _Hints_ , _Solutions_ , _Problems_ etc. and a list of corresponding extensions, say `.hints`, `.sol`, `.prb` in the correct order (how should `TeX` know which category belongs to which extension and vice versa), e.g. as 1st and 2nd arguments to a command, `\RegisterOutputFiles`.   * The connection between the category and the extension is stored in two text labels with different names but same counter number, the basics are described in another question of mine(already solved, see details here: Writing text content as labels and refer to them with \nameref*)   * `\RegisterOutputFiles` should create the file handles with some nice name, to remember them, say `\HintsFile`, `\SolutionsFile` etc. and open them for writing via `\immediate\openout\HintsFile=\jobname.hints` etc., all in a loop. Now in the loop comes the failure, when the selfdefined command `\NewWrite` shows up the error message > >      ! Missing \endcsname inserted. <to be read again> >                    \protect  l.84 > ....prb,.hints,.sol,.explain,.idea,.concepts} >   I am pretty sure, that I miss some expansion or similar, but I can not figure out, since `\NewWrite` works with direct injection of words like `Hints` etc. Here is the (usual non-working) MWE               \documentclass{article}          \usepackage{ifthen}     \usepackage{etoolbox}     \usepackage{blindtext}     \usepackage{morewrites}     \usepackage{xcolor}     \usepackage{hyperref}%                    \newrobustcmd{\NewWrite}[1]{%     \expandafter\newwrite\csname#1\endcsname%     }%               %% Later on... Create a handle from #1 and directly combine     %% it with filename #2 with \immediate\openout%     \newrobustcmd{\NewWriteOpenOut}[2]{%     \expandafter\newwrite\csname#1\endcsname%     \immediate\openout\csname #1\endcsname=#2%     }%               \makeatletter     \newcounter{pc@@filecounter}%           \newcounter{pc@@totalfilecounter}%     \newcounter{pc@@loopcounter}%               %% Hopefully only text is in #1%     \newrobustcmd{\WriteOutputFileLabel}[1]{%     \refstepcounter{pc@@filecounter}%     \immediate\write\@auxout{%     \string\newlabel{pc::outputfile::\number\value{pc@@filecounter}}{{\thesection}{\thepage}{#1}{}}%     }% End of writing to AUX file     }%          \newrobustcmd{\WriteOutputFileNameLabel}[1]{%     \refstepcounter{pc@@filecounter}%     \immediate\write\@auxout{%     \string\newlabel{pc::outputfilename::\number\value{pc@@filecounter}}{{\thesection}{\thepage}{#1}{}}%     }% End of writing to AUX file     }%               \newrobustcmd{\RegisterOutputFiles}[2]{%     %%% Other code before     %     \setcounter{pc@@filecounter}{0}%     \forcsvlist{\WriteOutputFileLabel}{#1}%      Store the output file `categories` to label names     \setcounter{pc@@totalfilecounter}{\number\value{pc@@filecounter}}%     \setcounter{pc@@filecounter}{0}%     \forcsvlist{\WriteOutputFileNameLabel}{#2}%  Store the extensions to label 'names'     %     \noindent%     \textbf{\Large \textcolor{blue}{There are \number\value{pc@@totalfilecounter} file categories!}}     %     \setcounter{pc@@filecounter}{1}%     \setcounter{pc@@loopcounter}{\number\value{pc@@totalfilecounter}}     \addtocounter{pc@@loopcounter}{1}%     %     %     \begin{center}     \textbf{\textcolor{red}{Diagnostics}}     \end{center}     %     \whiledo{\number\value{pc@@filecounter} < \number\value{pc@@loopcounter}}{%     \noindent \nameref*{pc::outputfile::\number\value{pc@@filecounter}}  \(\longrightarrow \)  \jobname\nameref*{pc::outputfilename::\number\value{pc@@filecounter}}%     \stepcounter{pc@@filecounter}%     %% Creating the file handles file with error message `\protect`      \NewWrite{\nameref*{pc::outputfile::\number\value{pc@@filecounter}}}%  %Creating file handle name `\anyname`      \newline%     } %     %%% Other code after     }%          \makeatother               \begin{document}               \RegisterOutputFiles{Problem,Hints,Solution,Explanation,Ideas,Concepts}{.prb,.hints,.sol,.explain,.idea,.concepts}%          \blindtext          \end{document}      **Notes:** You have to remove the `%` before `\NewWrite` in the loop and run `pdflatex` twice to see the final error message, the first one complains about missing references. The code is not finished and not polished, it is pre-stage of some concept study for another package.


title: Problem bending arrows in xypic

text: I'm having an annoying problem bending an arrow with `xypic`. I read the part 2.8 of the manual (http://www-bcf.usc.edu/~cautis/tools/xypic.pdf) about bending arrows, but could not understand it. Here's the best I could do ( _UPDATE_ : the first version is what I had before; the output mysteriously looks different on different runs of LaTeX. The second version is based on a suggestion from a comment below. It's still ugly, but perhaps that's the best I can do?):               \documentclass{article}     \usepackage[all]{xy}          \begin{document}     $$\xymatrix{     A \ar `/40pt[d] `[ddd] [ddd] \\ LongEntry \\ LongEntry \\ LongEntry     } \quad \xymatrix{     A \ar `/40pt[ddd] `/10pt[ddd] [ddd] \\ LongEntry \\ LongEntry \\ LongEntry     }$$     \end{document}      The output looks as follows: ![AARGH!](http://i.stack.imgur.com/cKh7u.png) How do I make the ending of the arrow sane? For bonus points, how does one bend arrows in general? (I'm more interested in an `xypic` answer, since this is part of a large diagram, but a `tikz-cd` answer would be nice too if it's particularly clear. The misadventure with this diagram is encouraging me to switch).


title: Why is my abstract starting from the middle of the page?

text: I am making a `scrreprt` document with an abstract right after the title page. Everything works fine except for the fact that the abstract title and paragraph start in the middle of the page... Does anybody know why? This is my document:                   \documentclass[11pt,a4paper,german,abstracton]{scrreprt}         \usepackage{ae}     \usepackage{aecompl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{graphicx}      \usepackage{amssymb}     \usepackage [chapter]{tocbibind}     \usepackage{latexsym}     \usepackage{multicol}     \usepackage{babel}     \usepackage{abstract}                    \begin{document}     \typearea[current]{current}               \titlehead{{University of Barcelona\\ Mathematics faculty}}               \subject{Thesis \\ \vspace{0.5cm}\}               \title{Any Day Now}               \author{Jordi Tello \\ 3210025}               \maketitle          \renewcommand{\abstractname}{\large Intro}     \begin{abstract}          **This is the text that is appearing in the mittle of the page, but why?**               \end{abstract}          \tableofcontents               \chapter{Einleitung}               \chapter{Übersicht über das Themengebiet}               \chapter{Entwicklung der eigenen Lösung}               \chapter{Implementierung der eigenen Lösung}               \chapter{Bewertung der eigenen Lösung}               \chapter{Zusammenfassung und Ausblick}     \end{document}


title: Adjustable absolute axis labels in pgfplots

text: How can I use absolutely placed y labels, but still adjust the absolute placement? In the below example, I want to be able to get the two plots to align exactly, including the y labels. If I add               ylabel absolute,      to the list of arguments of               \begin{axis[      I cannot use               ylabel shift = 0.1cm,      in the same argument list. If I skip ylabel absolute, I can use ylabel shift, but then I have to use different values for yshift (and it is not obvious exactly which values) to get equal spacing. Ideally, I would like to first fix the position of the y label (as ylabel absolute does) and then shift it (as ylabel shift does). How can that be done? MWE:               \documentclass{article}     \usepackage[tightpage,active]{preview}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.5}          \begin{document}     \begin{preview}     \begin{tikzpicture}         \begin{axis}[             height=6cm,             width=9cm,             xlabel=$x$,             ylabel=$y$]         \addplot[smooth,color=blue]           plot coordinates {             (0,3)             (2,4)             (3,1)         };         \addlegendentry{One curve}              \addplot[smooth,color=red]             plot coordinates {                 (0,0)                 (1,2)                 (2,1)                 (3,0)             };         \addlegendentry{Another curve}         \end{axis}     \end{tikzpicture}          \begin{tikzpicture}         \begin{axis}[             height=6cm,             width=9cm,             xlabel=$x$,             ylabel=$y$]         \addplot[smooth,color=blue]           plot coordinates {             (0,3)             (2,4)             (3,1)         };         \addlegendentry{One curve}              \addplot[smooth,color=red]             plot coordinates {                 (0,-10)                 (1,2)                 (2,1)                 (3,1)             };         \addlegendentry{Another curve}         \end{axis}     \end{tikzpicture}     \end{preview}     \end{document}      ![enter image description here](http://i.stack.imgur.com/GTtAc.png)


title: How do I define a custom verbatim command?

text: I'm not quite sure how to describe this, but I want to create a custom command that treats its input as verbatim and allows some control of the output. In pseudocode, I want:               \newcommand{\code}[1]{\verb{!#1!}}     \newcommand{\samp}[1]{{\normalfont\textsl{\verb!#1!}}}      (But that obviously doesn't work) `newverbs` gets me close to what I need, but e.g.               \RequirePackage{newverbs}     \newverbcommand{\code}{}{}      requires `\code!~!` rather than `\code{~}`


title: Replacing a glyph in one font with a glyph from another

text: I am a newbie with LaTeX when it comes to fonts. I would like to replace the double story "a" in Latin Modern for a single story "a" version (and similarly for the "g"). I just prefer my typeset output to look more in line with my handwritten output, aesthetics be damned. Last year, when I asked this question most people thought I was crazy to mess with the font design, but I want to do it anyway (I am stubborn that way). To partly alleviate the mixing and matching ugliness of the output (I am not totally deaf to the wise comments of my detractors from yesteryear), I wish to use as a substitute Latin Modern italics, _upright_ version, but only for the characters "a" and "g" (in all available font sizes and weights). I would hope that the clash would be thus minimized, as both fonts are Latin Modern, and so share some familiarity with each other. First: how do I get access to this hidden font version of Latin Modern? Second: how do I make the change using LaTeX for these two glyphs only? A partial answer was suggested to me last year, using XeTeX (and I need to study it further in order to understand it), but I gather XeTeX is not completely compatible with microtype, and I would rather not learn a new paradigm for my typesetting if I can help it. Thank you all for your answers. This forum is always very helpful to me.


title: Draw a box around each element of the xy-pic

text: How could I draw lines (like those in a tabular environment drawn by `\hline` and `|c|c|c|` in the following code?               \resizebox{\textwidth}{!}{         \xymatrix{             x_0 \ar[dr]    & x_1 \ar[d] \ar[dr] & x_2 \ar[d]   \\             %              \sum(x_0..x_0) & \sum(x_0..x_1)     & \sum(x_1..x_2)\\         }     }      For some reason, I can't compile the document if I use `*F{argument}` in order to draw a box around each element. To make more clear who ideally the output would be:               \begin{tabular}{| c| c| c|}         \hline         x_0& x_1& x_2\\ \hline     \end{tabular}      followed by the arrows.


title: Using references to a .bib file when using IEEEtran

text: I'm writing an article that is supposed to be written using the IEEE Manuscript Templates for Conference Proceedings. I downloaded the latex templates from [here][1], and used the bare_conf.tex as a template to my article tex file, myArticle.tex. I did not remove any code (only comments), and started slowly exchanging the template content with real content. I started to work references into my article, so as the IEEEtran_HOWTO.pdf file advised me, I added the lines `\bibliographystyle{IEEEtran} \bibliography{IEEEabrv,mybibfile}` to my code, and created a .bib file, currently containing only a single item (see below). However, when I added the `\cite` command to my code, referencing the cite key of my single entry, I received the following error and warning:               ! LaTeX Error: Something's wrong--perhaps a missing \item.     LaTeX Warning: Citation 'jj2' on page 2 undefined on input line 70.     LaTeX Warning: There were undefined references.      I'm trying to understand what is it that I'm doing wrong, but so far unsuccessfully. Here are all relevant details that I can think of:   1. My installation: My OS is Windows XP SP3. I'm using Texmaker 3.5.2 as my Tex editor, and MikTex 2.9 as my Tex compiler. The package bibtex is installed, and all my packages are updated as of today.   2. My working folder contains the following files:     * IEEEtran.cls (copied from the template's folder)     * IEEEabrv.bib (downloaded, thought it might be necessary)     * IEEEtran.bst (downloaded, thought it might be necessary)     * myArticle.tex     * myArticle.pdf     * myArticle.aux     * myArticle.bbl     * myArticle.blg     * myArticle.bcf     * myArticle.log     * myArticle.synctex.gz     * myArticle.run.xml     * bibi.bib   3. This is how my .tex file looks like:                  \documentclass[conference]{IEEEtran}         \hyphenation{op-tical net-works semi-conduc-tor}                  \begin{document}         \bibliographystyle{IEEEtran}         \bibliography{IEEEabrv,bibi}         \title{My Article's Title}              \author{\IEEEauthorblockN{****}         \and         \IEEEauthorblockN{****}         }         \maketitle                   \begin{abstract}         The abstract goes here.         \end{abstract}         \IEEEpeerreviewmaketitle              \section{Introduction}         My intro... blah blah \cite{jj2}.              \section{Conclusion}         The conclusion goes here.              \section*{Acknowledgment}              \end{document}        4. My bibi.bib file:                  @ARTICLE{jj2,     author = {Andreas Junghanns and Jonathan Schaeffer},     title = {Sokoban: Enhancing general single-agent search methods using domain      knowledge},                 journal = {Artificial Intelligence},                 year = {2001},                 volume = {129},                 pages = {219-251}             }      **Edit** : My code after changing like _percuße_ suggested (I still get the same error):               \documentclass[conference]{IEEEtran}       \usepackage[noadjust]{cite}            \hyphenation{op-tical net-works semi-conduc-tor}          \title{title}            \author{\IEEEauthorblockN{Inbar Naor}\and       \IEEEauthorblockN{Shay Palachy} }            \begin{document}       \maketitle                 \begin{abstract}         The abstract goes here.       \end{abstract}                 \section{Introduction}       blah blah \cite{jj2}.             \section{Conclusion}        The conclusion goes here.              \bibliographystyle{IEEEtran}       \bibliography{bibi}            \end{document}                 [1]: http://www.ieee.org/conferences_events/conferences/publishing/templates.html


title: How does math mode work?

text: When writing an `a` in TeX, it is typeset as an upright "a" by default. When writing an `a` in math mode it is typeset in italics. Furthermore, in math mode white spaces are ignored and no empty lines are allowed. What settings are changed internally when TeX switches to math mode? Any pointers where to find a more or less detailed explanation or an overview are welcome, too.


title: Glossary and list of acronyms in the same page

text: Basically I have two lists (glossary and acronyms) that i want to merge into one section only, something like (List of terms AND acronyms)


title: problems with paragraphs in apa6 class

text: I'm writing a document with the apa6-class. Unfortunately, the paragraphs in one section are different (bigger) than the other ones. The indentation is fine but the space is not double-spaced like in the rest of the document. I didn't change any of the settings. Therefore I also can't post a simple example reproducing the error. Here's my preamble:                   \documentclass[man,a4paper,floatsintext]{apa6}         \usepackage{lmodern}         \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage[style=apa,sortcites=true,sorting=nty,backend=biber]{biblatex}         \addbibresource{super.bib}         \usepackage{float}         \usepackage{fancyref}         \usepackage{csquotes}         \usepackage{booktabs}         \usepackage{tabularx}         \usepackage{graphicx}         \usepackage[american]{babel}      Anyone with the same problem? I'm using TeX-Live on Ubuntu. Thank you in advance for your help!


title: Looking for macros to typeset syntax in more conventional way

text: I want to create a note about PSTricks and I need macros to typeset syntax in more conventional way that is adopted by most computer scientists. For example, I need a pair of `>` and `<` but they must be slimmer than the usual ones. Here I used `\guillemotright` and `\guillemotleft` as I could not find the better ones. Here is my MWE, could you help me to accomplish my objective? Best practice is also welcome! ![enter image description here](http://i.stack.imgur.com/N6Xpw.png)               \documentclass[]{article}     \usepackage[T1]{fontenc}     \usepackage{xcolor}          \def\guillemetright{\guillemotright}% from now on we must hide the wrong terms.     \def\guillemetleft{\guillemotleft}% from now on we must hide the wrong terms.          \def\gr{\guillemetright}%I need a single > but not as big as the usual >.     \def\gl{\guillemetleft}%I need a single < but not as big as the usual <.          \newcommand\com[1]{\textbf{\textbackslash #1}}     \newcommand\opt[1][\textit{kv-options}]{\textcolor{blue}{[\gl\ensuremath{#1}\gr]}}     \newcommand\man[1]{\textcolor{red}{\{\gl\ensuremath{#1}\gr\}}}               \begin{document}          \section{Projection}     \fbox{\com{pstProjection}\opt\man{A}\man{B}\man{P_1,\ldots,P_n}\opt[P_1',\ldots,P_n']}          \noindent will project orthogonally the point $P_i$ on the line $\overline{AB}$.      \end{document}      Note: `\man` (mandatory) in red, `\opt` (optional) in blue, `\com` (command) in black.


title: Emphasize the first reference to a figure or table

text: I'm writing a scientific report and it's required that the first reference to any figure or table (not to equations or sections) in the text is set bold like this: ![example](http://i.stack.imgur.com/7R7Li.png) Is there a package for this kind of task? The acronym package does something similar giving the full description of an acronym when it's used for the first time, so I guess it's not a too special problem.


title: pocket-sized address book

text: Do you know of any latex example or a package that I could use to print a pocket sized paper? All records will have a format like this: > | name | phone | e-mail | It would contain only 15 records for now so I think an A6 or A7 would be a good paper size. UPDATE: It would be nice to have **cropping marks** to help me cutting the A6 or A7 paper shape. I would like to fill an A4 paper with those pocket-sized phone books and then cut them for my 15 friends in the list.


title: How to add a newline after a figure?

text: It seems that after figures there is no vertical space whatsoever. LaTeX doesn't seem to like me adding a `\\` after the figure, too. How can I accomplish some vertical spacing after a figure? Here's my current latex code:               \begin{figurehere}         \centering             \includegraphics[width=16cm]{abc.png}         \caption{\footnotesize{my footnote 1}}         \label{q-qg}     \end{figurehere}          \begin{figurehere}         \centering             \includegraphics[width=16cm]{def.png}         \caption{\footnotesize{my footnote 2}}         \label{q-qg}     \end{figurehere}          \noindent abcabc      This is the header of my file:               \documentclass[a4paper,10pt]{article}     \pagenumbering{arabic}     \pagestyle{headings}     \usepackage{color}     \definecolor{dkgreen}{rgb}{0,0.5,0}          \usepackage[left=2.5cm,top=2cm,right=2.5cm,bottom=3cm]{geometry}     \usepackage{listings}     \lstset{language=Java, keywordstyle=\color{blue}, commentstyle=\color{dkgreen},escapechar=|}     \usepackage{multicol,multirow,graphicx,tabularx}     \usepackage{marvosym,textcomp,cancel,gensymb,lscape}          \usepackage{hyperref}     \usepackage{pdflscape}       \usepackage{subfigure}     \usepackage{ucs}  %Unicode support     \usepackage[utf8x]{inputenc} % UCS' UTF-8 driver is better than the LaTeX kernel's     \usepackage[T1]{fontenc}  %The default font encoding only contains Latin characters     \usepackage{ae,aecompl}  %Almost European fonts/hyphenation do a better job than Computer Modern     \usepackage{amsmath, amsthm, amssymb}  %something i found for page numbering          %hack para meter imagens e tabelas em multicol     \makeatletter     \newenvironment{tablehere}       {\def\@captype{table}}       {}          \newenvironment{figurehere}       {\def\@captype{figure}}       {}     \makeatother          \newenvironment{lista}{     \begin{itemize}       \setlength{\itemsep}{2pt}       \setlength{\parskip}{0pt}       \setlength{\parsep}{0pt}}{       \end{itemize}     }          %e uns teoremazinhos$\eta$     \newtheorem{theorem}{Theorem}[section]     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{corollary}[theorem]{Corollary}          \title{{\bfseriesyyy}\\{\bfseries \small xxx}}     \author{\Large{xyz}\\ abcde}     \date{some date}           %costumizar captions e titulos     \renewcommand{\abstractname}{Resumo}     \renewcommand{\figurename}{Fig.}     \renewcommand{\tablename}{Tabela}     \renewcommand\refname{Referências}          \long\def\symbolfootnote[#1]#2{\begingroup     \def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}


title: Beamer Question Color

text: Which template exists to avoid black and blue colors? The most templates are using either blue or black. Is there something with red or green available?


title: Enumerating inside a proposition and inside a proof

text: I have one problem with enumerating. The symbols for items look differently when the enumerating is done ''inside'' propositions from the enumerating done ''inside'' a proof. The code               \documentclass[11pt,a5paperfootinclude=true,headinclude=true]{scrbook} % KOMA-Script book     \usepackage[T1]{fontenc}                     \usepackage{lipsum}     \usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters     \usepackage[bitstream-charter]{mathdesign}     %\usepackage[osf]{libertine}     \titleformat{\section}       {\normalfont\bfseries}{\thesection}{1em}{}                                   \usepackage{amsthm}     \usepackage{amsmath}      \usepackage{multicol}      \usepackage{IEEEtrantools}          \usepackage{anysize}     \marginsize{0.1\paperwidth}{0.1\paperheight}{2cm}{2cm}     \newcommand{\bigslant}[2]{{\raisebox{.2em}{$#1$}\left/\raisebox{-.2em}{$#2$}\right.}}          \usepackage{enumerate}                    \begin{document}                    \theoremstyle{plain}     \newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter          \theoremstyle{definition}     \newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers     \newtheorem{exmp}[thm]{Example}          \theoremstyle{corollary}     \newtheorem{cor}[thm]{Corollary}          \theoremstyle{lemma}     \newtheorem{lem}[thm]{Lemma}          \theoremstyle{proposition}     \newtheorem{prop}[thm]{Proposition}     \newcommand{\ndiv}{\hspace{-4pt}\not|\hspace{2pt}}          \begin{prop}     \begin{enumerate}[(a)] % (a), (b), (c), ...     \item     \item     \end{enumerate}     \end{prop}          \begin{proof}     \begin{enumerate}[(a)] % (a), (b), (c), ...     \item     \item     \end{enumerate}     \end{proof}               \end{document}      and the result ![enter image description here](http://i.stack.imgur.com/nxMgx.jpg) Is there any remedy for this, so they look identical or is it impossible? Can we also make a reference to the enumerated item? Thank you


I'm using `pdflatex` to compile my `.tex` files and I'm new on this. I have this package that uses subfiles, but I can't compile because of this error:               LaTeX Error: File `subfiles.sty' not found.      I have already installed `texlive-full` and all other packages that I think could be the solution, also I run `texhash` and didn't work. How can I overcome this error? Where are the package files? Can I download a `subfiles.sty` directly there?


title: How to prevent MnSymbols from aliasing \emptyset=\varnothing=\diameter?

text: I'd really like to keep the default `\emptyset`. I also use `MnSymbol`. But `MnSymbols` aliases `\emptyset` and `\varnothing` to `\diameter`. How can I prevent that from happening? Could I save `\emptyset` previously to calling `\usepackage{MnSymbol}` and restore it later on?


title: How do I identify the encoding and family of a new math font?

text: In this question, sfranky asked to put a double accent over `\bm{\phi}`, produced by the `bm` package. Double accents are implemented in both the `amsmath` and `accents` packages, but those packages don't work together well with `bm`. What I found out myself: One can use `\use@mathgroup` to make it work. Now in my answer to sfranky's question I proposed to use               \use@mathgroup{\M@OMS}{5}{\bm{\phi}}      to get a bold `\phi` that the `accents` package can handle. However, half of that was just educated guesses. `OMS` is the encoding, I think (and maybe it should be `OML` in this case), and `5` is the font family of the `\bm{phi}`. Altough it seems to work, surely this is not the Right Way of doing it. Thus my question: Is there a way to automatically identify the encoding and family of the symbol I'm going to use?


title: Metapost intersectiontimes

text: In the code below `intersectiontimes` is not giving an intersection point of the two paths. Could anyone provide some guidance on how to find (and mark) the intersection points of the curves below? (I'm a metapost noob, so if you wanted to throw in any other advice, then that would be appreciated as well!) ![enter image description here](http://i.stack.imgur.com/pCLWT.png)               \documentclass{article}     \usepackage{luamplib}     \begin{document}          \begin{mplibcode}          gu:=1cm;     vardef j(expr t) = 2*t*t*gu enddef;     vardef g(expr t) = t*t*t*t*gu-2*t*t*gu enddef;          vardef Function(suffix f)(expr ti,tf,n) =         save fpas;         fpas := (tf-ti)/n;         (ti*gu,f(ti)) for i=1 upto n: ..(ti*gu+i*fpas*gu,f(ti+i*fpas)) endfor     enddef;          def mybox(expr l,r,t,b) =         clip currentpicture to          ( (l*gu,b*gu)--(r*gu,b*gu)--(r*gu,t*gu)--(l*gu,t*gu)--cycle)     enddef;          beginfig(1);         a = -4;         b = 4;              path p;         p = Function(j,a,b,200);              path q;         q = Function(g,a,b,200);              draw p           yscaled .15           xscaled .7           withpen pencircle scaled .5;              draw q           yscaled .15           xscaled .7           withpen pencircle scaled .5;              fill buildcycle(reverse(q),p) xscaled .7 yscaled .15 withcolor .7red;              drawdblarrow ((-2,0)*gu--(2,0)*gu);         drawdblarrow ((0,-1)*gu--(0,3)*gu) xscaled .7 yscaled .8;              z1 = (p yscaled .15 xscaled .7) intersectiontimes (q yscaled .15 xscaled .7);         dotlabel.lft("x",z1);              mybox(-2,2,-1,2.5);          endfig;     end          \end{mplibcode}          \end{document}


title: tikz positioning of nodes

text: I want to generate a simple organigram with reasonable-looking distances in x and y direction. How can I get equidistant distances between the nodes?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}     \begin{tikzpicture}     [topline/.style={rectangle,rounded corners,fill=red,xshift=3cm, yshift=2.5cm, minimum width=15mm,minimum height=10mm},     botline/.style={rectangle,rounded corners,fill=orange,xshift=3cm, yshift=2cm, minimum width=15mm,minimum height=10mm},     ]     \node at (0,0) [topline] {A};     \node at (1,0) [topline] {B};     \node at (2,0) [topline] {C};     \node at (0,-1) [botline] {D};     \node at (0,-2) [botline] {E};     \end{tikzpicture}          \end{document}      ![tikz node positioning](http://i.stack.imgur.com/kott8.png)


title: How do I create the universe of discourse symbol with LyX?

text: I've been using OpenOffice and/or MS Word to do my college assignments, but since I started this new discrete math course, I'm finding myself very annoyed with the math formula options in those programs. I learned about LaTeX and figured it would be my best option. Since I really just want to get my college assignments done with it and not use it for printing books I've written or anything, I decided to go with LyX. It has a quick and easy preview option, and isn't so different from what I'm used to. I still can't find a way to make the fancy, cursive script "U" that represents universe or universe of discourse that is used in set theory. Is there a specific package I need, or did I just miss it somehow. Also, if I do need a new package, how is that even done with LyX. Anyone with assistance has my gratitude.


title: What's the best way to align binary operators to the right of a relation symbol?

text: I know that you're generally told to align binary operators to the right of a relation symbol like this (using `{align*}`):               \begin{align*}     x={}&a+b+c\\         &+d+e+f     \end{align*}      But would it look better (though be more error prone) to do something like this to get the + exactly flush with the a?               \begin{align*}     x={}&a+b+c\\         &{+}\: d+e+f     \end{align*}      (That is, use braces to turn the + into an ordinary symbol and add the medium space between the + and the d by hand.) Edit: I'm trying to do exactly what's said in rule 3.3.5b, "Break at conjunctions and align to the right of the first verb", on page 46 of _Mathematics into Type_ (updated edition, 1999).


title: Use Xtable to do plus minus

text: I am using a similar dataset to the following:               a= c("Fruits", "Adam","errorA", "steve", "errorS",          "apples", 17.1,2.22, 3.2,1.1,          "oranges", 3.1,2.55, 18.1,3.2 )     a_table=data.matrix(t(matrix(a,nrow=5)))      I would like to plus minus every second column starting from errorA (using xtable/ hmisc) example output (ignoring decimals):                Fruits && Adam && Steve \\      Apples && 17\pm 2 && 3 \pm 1 \\      Oranges && 3\pm 2 && 18 \pm 3\\      Additionally is there any way I can have just to 2 d.p.?


title: Displaying a sequence of images in a timed fashion in beamer

text: I would like to display a sequence of images in a timed fashion in beamer i.e. I want to zoom an image from small size to large size. Below is the code I tried and I get some errors while compiling.               \documentclass{beamer}          \usetheme{Copenhagen}     \usecolortheme{whale}     \useinnertheme{rounded}          \usepackage{tikz}     \usepackage{calc}     \usepackage{forloop}          \begin{document}          \newcounter{k}     \forloop{k}{1}{\value{k} < 11}{     \begin{frame}     \transduration{0.1}     \includegraphics[scale=\value{0.01\arabic{k}}]{images/my_image.pdf}     \end{frame}     }          \end{document}


title: Caption format changing

text: I want my captions of figures to be formated like this: 1 pav. First Caption 2 pav. Second Caption Furthermore, I need my captions to be centered. How can I redefine this?


title: How to expand a macro to use it inside a question in AMC?

text: # Context I'm trying to use AMC to produce an exam with code in it. However, the use of verbatim code inside the questions is beyond the scope of the package. They suggest to declare boxes and used them inside each question. But, I found problematic to create a `\newbox` per question and insert it by hand. Thus, I searched for a solution on how to create and insert boxes automatically (following this question and this answer). # Problem But now, I'm stuck with the expansion of the macros. As the macro I'm using inserts always the last created box. As it seems that the AMC package post processes all the elements (questions) in the `\onecopy` macro, and it expands my macro `\insertbox` then. However, I need to insert the expanded version of the macro in every element, in order to insert the expanded name of the box I created. Thus, how can I expand the definition of the box and insert it in each question? I tried to store the `\savebox` definition in another macro an insert it after, using `\edef` but that doesn't work either. I will like to redefine `\insertbox` in such a way that is expanded with the name of the temporal box I created, instead of being expanded until the call of `\onecopy`. # Code               \documentclass{article}          \usepackage[box]{automultiplechoice}     \usepackage{listings}          % a simple wrapper to create boxes automatically     \makeatletter     \newcounter{myboxcounter}     \newenvironment{mybox}{%       \addtocounter{myboxcounter}{1}%       \expandafter\newsavebox\csname foobox\roman{myboxcounter}\endcsname       \global\expandafter\setbox\csname foobox\roman{myboxcounter}\endcsname\hbox\bgroup\color@setgroup\ignorespaces     }{%       \color@endgroup\egroup     }     % first try     % \newcommand{\insertbox}{\expandafter\usebox\csname\name\endcsname}     % second one     \newcommand{\insertbox}{\edef\name{foobox\roman{myboxcounter}}\edef\x{\expandafter\usebox\csname\name\endcsname}\x}     \makeatother               \begin{document}          %%% preparation of the groups     \begin{mybox}     \begin{lstlisting}[language=C++]       int a = 10;       a = a + 10;     \end{lstlisting}     \end{mybox}     \element{code}{       \begin{question}{code 1}         Which is the result of \texttt{a}?              \insertbox         \begin{choices}           \correctchoice{10}           \wrongchoice{20}           \wrongchoice{0}           \wrongchoice{30}         \end{choices}       \end{question}     }          \begin{mybox}     \begin{lstlisting}[language=C++]       int a = 10;       a = a++;     \end{lstlisting}     \end{mybox}     \element{code}{       \begin{question}{code 2}         Which is the result of \texttt{a}?              \insertbox         \begin{choices}           \correctchoice{10}           \wrongchoice{11}           \wrongchoice{12}           \wrongchoice{0}         \end{choices}       \end{question}     }          %%% copies     \onecopy{1}{     \insertgroup{code}     }          \end{document}      As you can see in the image below, both inserted codes belong to the last box created. As the macro seems to expand later, instead of when called in the `\element` macro. ![enter image description here](http://i.stack.imgur.com/MojIc.jpg)


title: List of unsuitable fonts

text: It seems that the actual answer to this question is "It's up to you". However I often read in `tex.SE` some comments that oppose the usage of certain fonts, in somehow an absolute character. That suggests that some fonts are widely used, while some others, frown upon (depending on the situation, of course). I don't mean some fonts are uglier than others, but there are presumably situations in which their use is inappropriate. I'd like to see suggestions of the community for:   * Unsuitable fonts for talks slides (`beamer`).   * Unsuitable fonts for papers.   * Unsuitable fonts for math calligraphy.   * Unsuitable ...(you might want to add some other situations)


title: Why is $ required around \oplus in a math environment?

text: I wrote the following:               \begin{equation*}     \begin{tabular}{c|c|c}     P & Q & P \oplus Q \\     \hline     \text{T} & \text{T} & \text{F} \\     \text{T} & \text{F} & \text{T} \\     \text{F} & \text{T} & \text{T} \\     \text{F} & \text{F} & \text{F} \\     \end{tabular}     \end{equation*}      and the latex compiler complained 'missing $ inserted' on the first line of the table (the one with the \oplus code. I changed that line to:               P & Q & P $\oplus$ Q \\      and it worked. If equation is a math environment, why is LaTeX requiring \oplus to be enclosed between $ symbols?


title: How to use reftex in multiple files

text: I tried some solutions but fail so far. I divide large data into multiple files and then include all of them in main file. I used emacs24. Here is general of my main.tex file               \include{chapter1}     \section{test} hello POS     \include{chapter2}     \include{chapter3}     \bibliographystyle{amsplain}     \bibliography{mybibliography}      In the main.tex file, i enable reftext-mode, and then ctrl+c+[, the reftex works for me and it asks me to type searched word for bibliography. However, this operation fail when i switch to the chaper1.tex buffer, the error message is:                **byte-code: No valid bibliography in this document, and no default available**      The chaper1.tex is like:               \section{introduce}     ....     \subsection{result}      Clearly, the error message shows that chapter1.tex does not contain any `\bibliography{mybibliography}`, which already is in `main.tex`. Since i do not want add any `\bibliography` in my `chapter1.tex`, so how should i handle this error? ================================================ **UPDATE:** I also follow page: https://www.gnu.org/software/auctex/manual/auctex/Parsing-Files.html and tried below two solutions: SOLUTION 1: Add these to .emacs/init.el file               (setq TeX-parse-self t) ; Enable parse on load.     (setq TeX-auto-save t) ; Enable parse on save.      OR SOLUTION 2: Add these declaration at beginning of each file               %%% Local Variables:     %%% TeX-parse-self: t     %%% TeX-auto-save: t     %%% End:      After restart emacs, enable reftex-mode in chapter1.tex, but the problem still occurs.


title: Package for coin symbols (heads, tails)

text: Does anyone know if there is a package that includes symbols for coins? I'm typesetting a solution I wrote for a probability problem dealing with coin flips and I'm trying to include some visual aids that would hopefully have coins showing heads and tails, etc. Thanks!


title: Formatting help: vertical rule, headers

text: I am trying to reproduce the famous employee handbook from Valve. It looks like this: ![enter image description here](http://i.stack.imgur.com/20iRz.png) I'm making progress, but am stumped on three issues. 1) How to make my vertical line separating pages continue through the header and footer. 2) When I create a chapter, the pagination is treated as one page, rather than two, as I have it through the rest of the document. 3) I'd like to reproduce the running headers, but am experiencing difficulty there too. Any help is appreciated. Here is my MWE:               \documentclass[letterpaper]{book}     \usepackage{fontspec}     \usepackage{color, graphicx}                    %%%%%%%%%% Experiments %%%%%%%%%%%%          \usepackage{pstricks}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{dashrule}          %%%%%%% Wallpaper          \usepackage{wallpaper}          %%%%%%%%%%%%%%%%%%%%%          \definecolor{Ahrenge}{RGB}{214,82,10}     %\definecolor{Ahrenge}{RGB}{202, 64, 28}     \setromanfont{Libre Baskerville}      \setsansfont{Andada}      \setmonofont{Andada}      \usepackage{setspace}     \linespread{1.4}     \usepackage[landscape,twocolumn, left=1in, top=1in, right=1in, bottom=1in]{geometry}     \usepackage{fancyhdr,lipsum}% http://ctan.org/pkg/{fancyhdr,lipsum}     \pagestyle{fancy}     \fancyhf{}% Clear header/footer     \renewcommand{\headrulewidth}{0pt}     \lfoot{\makebox[\columnwidth]{\thepage}}     \rfoot{\makebox[\columnwidth]{\number\numexpr\value{page}+1}\stepcounter{page}}     \title{Fake Title}     \author{Larry Tate}     \date{}          %%%%%Page Boxes%%%%%%%%%%          \usepackage{pgf}     \usepackage{pgfpages}          \pgfpagesdeclarelayout{boxed}     {       \edef\pgfpageoptionborder{0pt}     }     {       \pgfpagesphysicalpageoptions       {%         logical pages=1,%       }       \pgfpageslogicalpageoptions{1}       {         border code=\pgfsetlinewidth{1pt}\pgfstroke,%         border shrink=\pgfpageoptionborder,%         resized width=.95\pgfphysicalwidth,%         resized height=.95\pgfphysicalheight,%         center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight}%       }%     }          \pgfpagesuselayout{boxed}               \setlength{\columnseprule}{1pt}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \setlength{\columnsep}{2cm}               \begin{document}               \CenterWallPaper{.95}{background}          \chapter*{Chapter One}               \section*{\color{Ahrenge}The First Section}     \lipsum[1]          \begin{quote}          Hello World! This is a block quote within the text sample. This is quite fake. Why are you still reading?          \end{quote}     \lipsum[1]          %\noindent\hdashrule[0.5ex]{10.5cm}{1.4pt}{2.5mm}          \begin{mdframed}[hidealllines=true,backgroundcolor=brown!27]     \lipsum[2]     \end{mdframed}          %\noindent\hdashrule[0.5ex]{10.5cm}{1.4pt}{2.5mm}     \lipsum[1-2]          \section*{\color{Ahrenge} The Second Section}     \lipsum[1-2]               \section*{\color{Ahrenge}This is a Section}     \lipsum[1-3]     \section*{\color{Ahrenge} The Next Section}               \lipsum[1-2]          \end{document}      Here is the background image file.![enter image description here](http://i.stack.imgur.com/IG6tI.png)


title: Change text for a unit in siunitx

text: I am using siunitx package. When I type `\SI{60}{\second}`, the output will be `60 s`. How can I change the appearing text in the output to be `60 sec`?


title: Typesetting digraph with weighted edges, varying vertex size, multiple lines in vertex

text: I would like to draw the graph displayed in the following picture with TikZ and also do some modifications: ![enter image description here](http://i.stack.imgur.com/ag5rz.png) Firstly I want to carry the labels of the nodes to the inside as a second line. For instance inside node **a** it will display _a_ , and then below _(0.5 70/70)_ (preferably with a smaller font than _a_ ). Moreover I would like to change the sizes of the nodes wrt. the the numeric value displayed in the label. So as an example the node **e** will be approximately twice as big as node **a**.


title: Graphical index based on figures? (Beamer)

text: At the end of my Beamer presentation, I would like a slide that contains thumbnails of all the images presented in my slide. These images would be linked to the slide which they appeared on. Basically, it's a graphical index of the presentation. That way, I could find the slide by simply clicking on the right picture when someone asked a question. This would also be very helpful for a thesis/textbook, but for now I'm concerned with Beamer. I've only seen this done once (in a textbook), but it made everything significantly easier when trying to find a particular figure you had seen before. Has anyone tried doing anything like this? I'm sure I could brute-force it by simply including pictures at smaller scales, but I though there might be a proper way to do it.


title: List of Figures sorted by Figure number

text: I am using               \usepackage{imakeidx}       \usepackage{hyperref}        and the command `\listoffigures` to get the list of figures. Some figures are double-column, some are single-column, and LaTeX does not always place them consecutively.The figures are ordered by page as usual in the list of figures. However, I would prefer to have the list sorted by Figure number rather than page number, and with the number of figures I am using it would be impractical to change the numbers of any of the figures. This is a view of the first two pages of the List of Figures: ![enter image description here](http://i.stack.imgur.com/QeXia.png) Note the incorrect figure number order when sorted by page (page 28). Can this be changed? How?


title: Using \@-ified punctuation while using \frenchspacing

text: After reading this very informative TeX.SE thread about spacing and punctuation, I was left wondering about an issue that didn't seem to be addressed: using `\frenchspacing` together with the modified punctuation `\@.`, `\@?`, etc. As far as I can tell visually, using `\frenchspacing` together with these commands works correctly (i.e., it seems like nothing breaks, and the extra space is suppressed as normal), but are there problems that can arise from doing so? Moreover, when using `\frenchspacing`, "should" I still use `\@.` and its friends where it would ordinarily be necessary, in case someone wants to remove `\frenchspacing` later? Would accommodating (hypothetical) future editors in this way be "standard", "above and beyond the call of duty", or "crazy"?


title: The cross-reference boxes in TeX: the program

text: You know those boxes at the bottom of the right-hand pages in Volume B? Well, I managed to weave `mf.web` by stealing the weave binary from a distribution where it actually works (it doesn't in MiKTeX), and it TeXed fine, but I'm at a bit of a loss as to why those boxes haven't appeared. Is there any way I can get them, or are does Knuth keep the code for that locked up?


title: How do we do hierarchical includes with local paths?

text: I need to generate an appendix with hundreds of tables. I put several tables on a page, as an earlier question established. The first level consists of pure tables, created as `\begin{tabular}...\end{tabular}` blocks. Let's call 4 such primitive files `ch1-{a,b,c,d}.tex`, i.e. `ch1-a.tex`,`ch1-b.tex`, ... These four documents are emitted into a directory `/tex/ch1/`. The second level, which I call `2x2-ch1-abcd.tex`, is also a tabular, containing `\include{a}` \-- it is generated in the same subdirectory, `/tex/ch1/`. So far so good. If I wrap `2x2-ch1-abcd.tex` in a preamble, it compiles. Now I need to assemble such level 2 aggregates into a thesis. I have the master document as `/tex/thesis.tex`. If I say, in it, `\include{ch1/2x2-ch1-abcd}` \-- I get the no nested includes error. If I replace `\include` by `\input`, the second level cannot find the first level files anymore. I'd like to avoid encoding first-level paths into second-level matrices, to keep paths only in the master document. Can it be achieved within LaTeX without external symlinks?


title: Removing and storing the head of a token list/\toks

text: I am given a token list (parameter-less macro) `\myTokenList`, defined, e.g. by               \def\myTokenList{$(x + y)^2$, \ie, \(x^2+y^2+2xy\)}      and I want to split it as the first token, and the rest, obtaining the same result as               \def\head{$}     \def\tail{(x + y)^2$, \ie, \(x^2+y^2+2xy\)}      In most cases, this is easy using the `\split` macro below:               \def\split#1#2\EndMark{\def\head{#1}\def\tail{#2}}     \expandafter\split\myTokenList\EndMark      But this fails when the first token is a space. In fact, it even gobbles an arbitrary number of spaces. Using `\futurelet` seems to help, but   * I would much prefer `\head` to be a macro which expands to exactly the token (not something let to it)   * I don't know how to just remove the first token, even after `\futurelet`-ting Note that I have no control on the token list that I am given (braces will be treated differently): this is in the context of a generic debugging package for TeX's stomach.


title: How can I use biblatex to respect Physical Review A - style pagination (pagination by article, plus a prefix)?

text: In a work I am typesetting, the author cites a Physical Review A paper. [Specifically, this one: http://journals.aps.org/pra/abstract/10.1103/PhysRevA.86.013612 .] Not only does this journal renew pagination with each article, it prefixes the article number with each page: e.g., the above article goes from page 013612-1 to page 013612-5. I have attempted to use `biblatex`'s `pagination` field with a custom entry to prefix the article number, but this method only works for inline citations, and doesn't repeat the prefix for a multi-page citation; moreover, in this work, I really only need page numbers for the reference list. > How can I prefix the article number to the page number in the reference list > (for this reference only)? MWE -- .bib file               @article{cart1,        title = {Model of a $\mathcal{PT}$-symmetric Bose-Einstein condensate in a $\delta${}-function double-well potential},       author = {Cartarius, Holger and Wunner, G\"unter},     journaltitle = {Physical Review A},         date = {2012-07-09},       volume = {86},       number = {1},        pages = {1-5},     pagination = {jnum1},         misc = {013612},     publisher = {American Physical Society},          doi = {10.1103/PhysRevA.86.013612},          url = {http://link.aps.org/doi/10.1103/PhysRevA.86.013612},     }      MWE -- .tex file               \documentclass[11pt]{amsart}     \usepackage[backend=biber,citestyle=alphabetic,bibstyle=alphabetic]{biblatex}     \usepackage{url}     \usepackage{hyperref}     \NewBibliographyString{jnum1,jnum1s}     \DefineBibliographyStrings{english}{%     jnum1 = {013612--},     jnum1s = {013612--},     }     \addbibresource{biblatest.refs.bib}          \begin{document}     Something else. See \cite[1--3]{cart1}.     \printbibliography     \end{document}      **Note:** The obvious question is, "Do you really need to do this?" This will eventually depend on the publisher, but for the `arXiv` version I would prefer to match the original text [unless I am violating some cardinal rule]. * * * **Edit:** The above code produces the following output: ![original output](http://i.stack.imgur.com/k46xG.png) As you see, the default is to include the pages field in the end-of-paper reference list.


title: \hrule screws up minipage right indent

text: \documentclass[12pt]{article}     \usepackage[       top=0.75in, bottom=0.75in, left=0.75in, right=0.75in,       textheight=8.75in     ]{geometry}               \setlength{\parindent}{0pt}     \setlength{\parskip}{0pt}     \pagestyle{empty}               \begin{document}     \begin{minipage}{0.4\linewidth}     {\LARGE\textsc{My Name}}     \end{minipage}     \begin{minipage}[b]{0.4\linewidth}     \begin{flushright}     \footnotesize\texttt{myemail@abc.edu}     \end{flushright}     \end{minipage}     \smallskip     \hrule     \bigskip          {\textsc{ABC University}}          \end{document}      My code is above... if I remove the `\hrule` the email aligns correct to the right; however as soon as I add it it screws up. Any suggestions on how to fix this?


title: Include graphics in LaTeX

text: I am newbie to LaTeX and I have a simple problem including graphics to the text. When I run               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \begin{document}     \begin{figure}     \begin{center}     \includegraphics[width=0.25cm,height=0.25cm]{Figure1}     \caption[Sèries temporals de vent i direccions]{Sèries temporals velocitat de vent       direccions. filtratge de pics i glaçades de velocitat.}     \label{Serie}     \end{center}          \end{figure}     \end{document}      I create a `pdf` file but there is no figure inserted. The picture is called `Figure1.png` but it seems that the program do not recognizes it and doesn't inserts it. I would appreciate some help.


title: Putting table of contents in a page without other elements

text: I want to put the table of contents in a separate blank page where it will be alone without any other element. How can I achieve this?


title: Beamer: fade and zoom in \xymatrix environment

text: I am preparing a presentation in Beamer. I have the following diagram               \begin{frame}     \begin{figure}[h!]     \centerline{     \xymatrix{      & *+[F-,]{\txt{Text 1}}\ar[dl]\ar[dr]  \\     *+[F-,]{\txt{Text 2}} &  & *+[F-,]{\txt{Text 3}}     }     }     \end{figure}     \end{frame}      I would like to zoom in to "Text 2" while fading everything else. Then I want to reverse the procedure: zoom out and restoring the entire diagram. Is this possible? Thank you for any help you can provide!


title: Generating file associations on Windows Part II: DVI

text: This is going to be a simple addendum to my previous question (detailed enough I think, with image proofs) on how to set properly file associations on my machine; `OS: Windows 7 64 bit Professional, LaTeX: MikTeX v2.94 x64 Updated October 2013`. As a result, @karlkoeller gave an amazing solution, a re-implementation of all the connections between file extensions and programs inside a file `additions.reg`; this worked well to obtain a result with `*.tex`, `*.cls`, `*.bib` et similia. The main request would be on _the last extension available,`*.dvi`_, i.e. having installed correctly YAP, I only need the specified association inside Windows Registry by another `additionsdvi.reg`, since the result at the moment is the same as my first question: > ![enter image description here](http://i.stack.imgur.com/iBPwa.png) As it can be seen, on the `File Type` it appears as `File DVI`, the same as `File CLS`. This is windows itself that does not have a clue on which program has to be assigned, as it did the last time with the `class` extension. My experience is not enough to mess with this important stuff, as I learned it on my skin by "fighting" 7 hours straight as my PC slowly turning into complete chaos (I solved by a rough reboot, which I do not want it to repeat again).


title: Adobe Reader does not display dsfont symbols in XeLaTeX document

text: When I compile the following simple document with `XeLaTeX`:               \documentclass{article}          \usepackage{dsfont}          \begin{document}         $\mathds N \subset \mathds Z \subset \mathds Q \subset \mathds R \subset \mathds C$     \end{document}      Adobe Reader (now version 10.1.3 but this problem existed for some time) does not display the double stroke symbols correctly. Instead it just gives an error message: > Cannot extract the embedded font 'RAXAIQ+dsrom10'. Some characters may not > display or print correctly. and replaces those symbols with a dot: ![enter image description here](http://i.stack.imgur.com/xNkNB.png) It should look like this: ![enter image description here](http://i.stack.imgur.com/E8Q9O.png) Other readers like FoxIt or Okular have no problems displaying the document correctly. After reading egregs comment, I looked into `dsrom10.pfb`. The easiest way for me to inspect it, is using `fontforge`. First, `fontforge` reads the font without problems. But when I try to recreate the `pfb` file, I get an error for every glyph: > Missing Points at Extrema I read that it is possible to correct these with `fontforge`, but then the `dsrom10.pfb` was automatically generated by `pktrace`. So even if that would work (maybe I'll try it), it cannot be the final solution.


title: Simple two-column LaTeX template

text: I have been looking for a simple two-column LaTeX template. I have attached a template that I like, but I am unable to remove the footer on the bottom of the page. Also, I would like to remove the Categories and Subject section as well. I tried commenting the sections out using `%` in the `.tex` file, but that did not work. I also tried removing this in the `.cls` file but I received multiple errors when compiling. Any suggestions or help? http://www.acm.org/publications/latex_style/acm-tog-v1-2.zip


title: What is the structure of this algorithm?

text: I want to type this: ![enter image description here](http://i.stack.imgur.com/k1KIa.png) I started to do it by               \begin{subequations}     \begin{equation}     0. \text{la la la } 0 + 1 = 1     \end{equation     \begin{equation}     1. he he he      \end{equation}     \end{subequations      but I think it is not the good way. **What is the structure of the algorithm?**


title: How to draw 'Open Oyster' Feynman diagram with FeynMF or other package?

text: I am curious to learn about Feynman diagrams, so I have started to read Richard Mattuck's book "A guide to Feynman Diagrams in the Many-Body problem". One of the first diagrams that appears in this book he calls 'Open oyster diagram'. It describes two electrons interacting and exchanging positions and is depicted below (drawn with Inkscape): ![](http://i.stack.imgur.com/v9vGb.png) So, the y axis has the meaning of time, while the x axis in this case has somehow the meaning of space. Is there a reasonably simple way to create such a diagram with FeynMF? In other words: How do I introduce a turn by 90 degrees at a certain vertex into the diagram shown below (created with FeynMF)? ![FeynMF version](http://i.stack.imgur.com/4cmKl.png)               \documentclass{article}                                                                                \usepackage{feynmp}     \DeclareGraphicsRule{*}{mps}{*}{}          \begin{document}          \begin{fmffile}{sp1}     \begin{fmfgraph*}(50,100)         \fmfbottom{i1}         \fmftop{o1}         \fmf{fermion, label=$e$}{i1,v1}         \fmf{fermion, right, tension=0.5}{v1,v2}         \fmf{photon,label=$\gamma$, straight, tension=0.5}{v1,v2}         \fmf{fermion, label=$e$ }{v2,o1}     \end{fmfgraph*}     \end{fmffile}                                                                                \end{document}      P.S. I realize that there are `\fmffixed`, `\fmfforce` and `\fmfshift`, but I didn't manage to come up with some nice combination that would work without having to adjust it for each new diagram.


title: "Chapter" not appearing in title

text: I am using the report class to submit my thesis. Since my university wants the word 'chapter' to be in a different font, and the title of the chapter to be in a different format, I made some changes. The problem is that, the word chapter is not appearing because of the modifications I made. Is there any way I could still get the word chapter to appear with the this format? Here's the code               \documentclass{report}          \usepackage[top=1.0in,bottom=0.75in,left=1.25in,right=1in]{geometry}     \usepackage[onehalfspacing]{setspace}          \makeatletter     \renewcommand\chapter{\@startsection{chapter}{{Chapter} 1}{\z@}         {-3.5ex \@plus -1ex \@minus -.2ex}         {2.3ex \@plus.2ex}         {\normalfont\LARGE\bfseries}}     \makeatother          \begin{document}          \chapter{title}          \end{document}      I want this: > Chapter 1 Title but I'm getting that: > 1 Title