title: Height of sparkline

text: I'm trying to place a sparkline in a ctable using the `sparklines` package.               \documentclass[11pt]{article}     \usepackage{ctable}     \usepackage{sparklines}          \begin{document}          \ctable[         caption     = Regression Variables,         label       = tab:RegVar,         pos     = h,         mincapwidth = \textwidth,         doinside = \small \renewcommand\arraystretch{1.5}     ]{llll}{          }{     \FL          Regression      & Data Sources      & Resolution       &Figur\ML     Inventory       & file1             & Weekly           &\begin{sparkline}{20}     \spark      0.01 0.04039222 0.01099099 0.04039222 0.01198198 0.04039222 0.01297297 -0.04565813 0.01396396 -0.04565813 0.01495495 -0.04565813 0.01594595 -0.04565813 0.01693694 -0.09104063 0.01792793 -0.09104063 0.01891892 -0.09104063 0.01990991 -0.09104063 0.0209009 -0.09104063 0.02189189 -0.1902401 0.02288288 -0.1902401 0.02387387 -0.1902401 0.02486486 -0.1902401 0.02585586 -0.1902401 0.02684685 -0.1383101 0.02783784 -0.1383101 0.02882883 -0.1383101 0.02981982 -0.1383101 0.03081081 -0.1383101 0.0318018 -0.148107 0.03279279 -0.148107 0.03378378 -0.148107 0.03477477 -0.148107 0.03576577 -0.148107 0.03675676 -0.3207715 0.03774775 -0.3207715 0.03873874 -0.3207715 0.03972973 -0.3207715 0.04072072 -0.3207715 0.04171171 -0.2189944 0.0427027 -0.2189944 0.04369369 -0.2189944 0.04468468 -0.2189944 0.04567568 -0.2189944 0.04666667 -0.1636589 0.04765766 -0.1636589 0.04864865 -0.1636589 0.04963964 -0.1636589 0.05063063 -0.2613438 0.05162162 -0.2613438 0.05261261 -0.2613438 0.0536036 -0.2613438 0.0545946 -0.2945866 0.05558559 -0.2945866 0.05657658 -0.2945866 0.05756757 -0.2945866 0.05855856 -0.2945866 0.05954955 -0.3902137 0.06054054 -0.3902137 0.06153153 -0.3902137 0.06252252 -0.3902137 0.06351351 -0.3902137 0.0645045 -0.4048627 0.0654955 -0.4048627 0.06648649 -0.4048627 0.06747748 -0.4048627 0.06846847 -0.4048627 0.06945946 -0.6489096 0.07045045 -0.6489096 0.07144144 -0.6489096 0.07243243 -0.6489096 0.07342342 -0.6489096 0.07441441 -0.7956724 0.0754054 -0.7956724 0.0763964 -0.7956724 0.07738739 -0.7956724 0.07837838 -0.7956724 0.07936937 -0.5339617 0.08036036 -0.5339617 0.08135135 -0.5339617 0.08234234 -0.5339617 0.08333333 -0.5339617 0.08432432 -0.4161302 0.08531532 -0.4161302 0.0863063 -0.4161302 0.0872973 -0.4161302 0.08828829 -0.4161302 0.08927928 -0.4361027 0.09027027 -0.4361027 0.09126126 -0.4361027 0.09225225 -0.4361027 0.09324324 -0.4361027 0.09423423 -0.4252723 0.09522523 -0.4252723 0.09621622 -0.4252723 0.0972072 -0.4252723 0.0981982 -0.4252723 0.09918919 -0.5798262 0.1001802 -0.5798262 0.1011712 -0.5798262 0.1021622 -0.5798262 0.1031532 -0.5798262 0.1041441 -0.5181622 0.1051351 -0.5181622 0.1061261 -0.5181622 0.1071171 -0.5181622 0.1081081 -0.5181622 0.1090991 -0.617681 0.1100901 -0.617681 0.1110811 -0.617681 0.1120721 -0.617681 0.1130631 -0.5441084 0.1140541 -0.5441084 0.1150450 -0.5441084 0.1160360 -0.5441084 0.1170270 -0.4580295 0.1180180 -0.4580295 0.119009 -0.4580295 0.12 -0.4580295 0.120991 -0.4580295 0.1219820 -0.5204364 0.1229730 -0.5204364 0.1239640 -0.5204364 0.1249550 -0.5204364 0.1259459 -0.5204364 0.1269369 -0.4960217 0.1279279 -0.4960217 0.1289189 -0.4960217 0.1299099 -0.6629545 0.1309009 -0.6629545 0.1318919 -0.6629545 0.1328829 -0.6629545 0.1338739 -0.5699415 0.1348649 -0.5699415 0.1358559 -0.5699415 0.1368468 -0.5699415 0.1378378 -0.5699415 0.1388288 -0.7277313 0.1398198 -0.7277313 0.1408108 -0.7277313 0.1418018 -0.7277313 0.1427928 -0.7277313 0.1437838 -0.7458167 0.1447748 -0.7458167 0.1457658 -0.7458167 0.1467568 -0.7458167 0.1477477 -0.7535605 0.1487387 -0.7535605 0.1497297 -0.7535605 0.1507207 -0.7535605 0.1517117 -0.7535605 0.1527027 -0.77706 0.1536937 -0.77706 0.1546847 -0.77706 0.1556757 -0.77706 0.1566667 -0.77706 0.1576577 -0.9094492 0.1586486 -0.9094492 0.1596396 -0.9094492 0.1606306 -0.9094492 0.1616216 -0.9094492 0.1626126 -0.771535 0.1636036 -0.771535 0.1645946 -0.771535 0.1655856 -0.771535 0.1665766 -0.8243754 0.1675676 -0.8243754 0.1685586 -0.8243754 0.1695495 -0.8243754 0.1705405 -0.8243754 0.1715315 -0.7903039 0.1725225 -0.7903039 0.1735135 -0.7903039 0.1745045 -0.7903039 0.1754955 -0.7903039 0.1764865 -0.9260611 0.1774775 -0.9260611 0.1784685 -0.9260611 0.1794595 -0.9260611 0.1804505 -0.9260611 0.1814414 -0.9599395 0.1824324 -0.9599395 0.1834234 -0.9599395 0.1844144 -0.9599395 0.1854054 -0.9599395 0.1863964 -0.9369478 0.1873874 -0.9369478 0.1883784 -0.9369478 0.1893694 -0.9369478 0.1903604 -0.9369478 0.1913514 -0.838789 0.1923423 -0.838789 0.1933333 -0.838789 0.1943243 -0.838789 0.1953153 -0.838789 0.1963063 -0.9485943 0.1972973 -0.9485943 0.1982883 -0.9485943 0.1992793 -0.9485943 0.2002703 -0.9485943 0.2012613 -1 0.2022523 -1 0.2032432 -1 0.2042342 -1 0.2052252 -1 0.2062162 -0.8212667 0.2072072 -0.8212667 0.2081982 -0.8212667 0.2091892 -0.7979622 0.2101802 -0.7979622 0.2111712 -0.7979622 0.2121622 -0.7979622 0.2131532 -0.7979622 0.2141441 -0.8150064 0.2151351 -0.8150064 0.2161261 -0.8150064 0.2171171 -0.8150064 0.2181081 -0.8588814 0.2190991 -0.8588814 0.2200901 -0.8588814 0.2210811 -0.8588814 0.2220721 -0.8588814 0.2230631 -0.9261427 0.2240541 -0.9261427 0.2250450 -0.9261427 0.2260360 -0.9261427 0.2270270 -0.9261427 0.228018 -0.8493148 0.229009 -0.8493148 0.23 -0.8493148 0.230991 -0.8493148 0.231982 -0.7778045 0.2329730 -0.7778045 0.2339640 -0.7778045 0.2349550 -0.7778045 0.2359459 -0.7778045 0.2369369 -0.8427834 0.2379279 -0.8427834 0.2389189 -0.8427834 0.2399099 -0.8427834 0.2409009 -0.8427834 0.2418919 -0.725465 0.2428829 -0.725465 0.2438739 -0.725465 0.2448649 -0.725465 0.2458559 -0.725465 0.2468468 -0.78933 0.2478378 -0.78933 0.2488288 -0.78933 0.2498198 -0.78933 0.2508108 -0.78933 0.2518018 -0.8174899 0.2527928 -0.8174899 0.2537838 -0.8174899 0.2547748 -0.8174899 0.2557658 -0.8174899 0.2567568 -0.7768848 0.2577477 -0.7768848 0.2587387 -0.7768848 0.2597297 -0.7768848 0.2607207 -0.867693 0.2617117 -0.867693 0.2627027 -0.867693 0.2636937 -0.867693 0.2646847 -0.867693 0.2656757 -0.9384085 0.2666667 -0.9384085 0.2676577 -0.9384085 0.2686486 -0.9384085 0.2696396 -0.9384085 0.2706306 -0.851552 0.2716216 -0.851552 0.2726126 -0.851552 0.2736036 -0.851552 0.2745946 -0.851552 0.2755856 -0.7432253 0.2765766 -0.7432253 0.2775676 -0.7432253 0.2785586 -0.7432253 0.2795495 -0.7432253 0.2805405 -0.7061322 0.2815315 -0.7061322 0.2825225 -0.7061322 0.2835135 -0.7061322 0.2845045 -0.7061322 0.2854955 -0.7118327 0.2864865 -0.7118327 0.2874775 -0.7118327 0.2884685 -0.7118327 0.2894595 -0.7118327 0.2904505 -0.6893353 0.2914414 -0.6893353 0.2924324 -0.6893353 0.2934234 -0.6893353 0.2944144 -0.633198 0.2954054 -0.633198 0.2963964 -0.633198 0.2973874 -0.633198 0.2983784 -0.6518865 0.2993694 -0.6518865 0.3003604 -0.6518865 0.3013514 -0.6518865 0.3023423 -0.6518865 0.3033333 -0.5131221 0.3043243 -0.5131221 0.3053153 -0.5131221 0.3063063 -0.5131221 0.3072973 -0.5131221 0.3082883 -0.4394044 0.3092793 -0.4394044 0.3102703 -0.4394044 0.3112613 -0.4394044 0.3122523 -0.4394044 0.3132432 -0.4038468 0.3142342 -0.4038468 0.3152252 -0.4038468 0.3162162 -0.4038468 0.3172072 -0.4038468 0.3181982 -0.2737022 0.3191892 -0.2737022 0.3201802 -0.2737022 0.3211712 -0.2737022 0.3221622 -0.2737022 0.3231532 -0.1862005 0.3241441 -0.1862005 0.3251351 -0.1862005 0.3261261 -0.1862005 0.3271171 -0.1862005 0.3281081 -0.3088056 0.3290991 -0.3088056 0.3300901 -0.3088056 0.3310811 -0.3088056 0.3320721 -0.3088056 0.3330631 -0.2524458 0.3340541 -0.2524458 0.3350450 -0.2524458 0.3360360 -0.2524458 0.337027 -0.2524458 0.338018 -0.3066343 0.339009 -0.3066343 0.34 -0.3066343 0.340991 -0.3066343 0.341982 -0.3066343 0.342973 -0.2979940 0.3439640 -0.2979940 0.3449550 -0.2979940 0.3459459 -0.2979940 0.3469369 -0.2979940 0.3479279 -0.2701691 0.3489189 -0.2701691 0.3499099 -0.2701691 0.3509009 -0.2701691 0.3518919 -0.2701691 0.3528829 -0.3577305 0.3538739 -0.3577305 0.3548649 -0.3577305 0.3558559 -0.3577305 0.3568468 -0.4647794 0.3578378 -0.4647794 0.3588288 -0.4647794 0.3598198 -0.4647794 0.3608108 -0.5837987 0.3618018 -0.5837987 0.3627928 -0.5837987 0.3637838 -0.5837987 0.3647748 -0.5837987 0.3657658 -0.7012833 0.3667568 -0.7012833 0.3677477 -0.7012833 0.3687387 -0.7012833 0.3697297 -0.7012833 0.3707207 -0.673836 0.3717117 -0.673836 0.3727027 -0.673836 0.3736937 -0.673836 0.3746847 -0.6948385 0.3756757 -0.6948385 0.3766667 -0.6948385 0.3776577 -0.6815587 0.3786486 -0.6815587 0.3796396 -0.6815587 0.3806306 -0.6815587 0.3816216 -0.7859855 0.3826126 -0.7859855 0.3836036 -0.7859855 0.3845946 -0.7859855 0.3855856 -0.7859855 0.3865766 -0.7714502 0.3875676 -0.7714502 0.3885586 -0.7714502 0.3895495 -0.7714502 0.3905405 -0.7772213 0.3915315 -0.7772213 0.3925225 -0.7772213 0.3935135 -0.7772213 0.3945045 -0.7772213 0.3954955 -0.6388785 0.3964865 -0.6388785 0.3974775 -0.6388785 0.3984685 -0.6388785 0.3994595 -0.6388785 0.4004505 -0.7118723 0.4014414 -0.7118723 0.4024324 -0.7118723 0.4034234 -0.7118723 0.4044144 -0.7118723 0.4054054 -0.53348 0.4063964 -0.53348 0.4073874 -0.53348 0.4083784 -0.53348 0.4093694 -0.5454824 0.4103604 -0.5454824 0.4113514 -0.5454824 0.4123423 -0.5454824 0.4133333 -0.5454824 0.4143243 -0.5191489 0.4153153 -0.5191489 0.4163063 -0.5191489 0.4172973 -0.5191489 0.4182883 -0.5191489 0.4192793 -0.4654926 0.4202703 -0.4654926 0.4212613 -0.4654926 0.4222523 -0.4654926 0.4232432 -0.4654926 0.4242342 -0.4865644 0.4252252 -0.4865644 0.4262162 -0.4865644 0.4272072 -0.4865644 0.4281982 -0.4865644 0.4291892 -0.370591 0.4301802 -0.370591 0.4311712 -0.370591 0.4321622 -0.370591 0.4331532 -0.370591 0.4341441 -0.3269654 0.4351351 -0.3269654 0.4361261 -0.3269654 0.4371171 -0.3269654 0.4381081 -0.3269654 0.4390991 -0.3795027 0.4400901 -0.3795027 0.4410811 -0.3795027 0.4420721 -0.3795027 0.4430631 -0.3795027 0.4440541 -0.344519 0.4450450 -0.344519 0.446036 -0.344519 0.447027 -0.3859232 0.448018 -0.3859232 0.449009 -0.3859232 0.45 -0.3859232 0.450991 -0.3859232 0.451982 -0.3412220 0.452973 -0.3412220 0.453964 -0.3412220 0.454955 -0.3412220 0.4559459 -0.3412220 0.4569369 -0.3247736 0.4579279 -0.3247736 0.4589189 -0.3247736 0.4599099 -0.3247736 0.4609009 -0.2735777 0.4618919 -0.2735777 0.4628829 -0.2735777 0.4638739 -0.2735777 0.4648649 -0.2735777 0.4658559 -0.3394190 0.4668468 -0.3394190 0.4678378 -0.3394190 0.4688288 -0.3394190 0.4698198 -0.3394190 0.4708108 -0.3008510 0.4718018 -0.3008510 0.4727928 -0.3008510 0.4737838 -0.3008510 0.4747748 -0.3008510 0.4757658 -0.263327 0.4767568 -0.263327 0.4777477 -0.263327 0.4787387 -0.263327 0.4797297 -0.1970234 0.4807207 -0.1970234 0.4817117 -0.1970234 0.4827027 -0.1970234 0.4836937 -0.1970234 0.4846847 -0.1788102 0.4856757 -0.1788102 0.4866667 -0.1788102 0.4876577 -0.1788102 0.4886486 -0.08528692 0.4896396 -0.08528692 0.4906306 -0.08528692 0.4916216 -0.08528692 0.4926126 -0.08528692 0.4936036 -0.05886088 0.4945946 -0.05886088 0.4955856 -0.05886088 0.4965766 -0.05886088 0.4975676 -0.05886088 0.4985586 -0.02902577 0.4995495 -0.02902577 0.5005405 -0.02902577 0.5015315 -0.02902577 0.5025225 -0.09507856 0.5035135 -0.09507856 0.5045045 -0.09507856     0.5054955 -0.09507856 0.5064865 -0.09507856 0.5074775 -0.1553570 0.5084685 -0.1553570 0.5094595 -0.1553570 0.5104505 -0.1553570 0.5114414 -0.05452455 0.5124324 -0.05452455 0.5134234 -0.05452455 0.5144144 -0.05452455 0.5154054 -0.05452455 0.5163964 -0.06020499 0.5173874 -0.06020499 0.5183784 -0.06020499 0.5193694 -0.06020499 0.5203604 -0.06020499 0.5213514 -0.1185952 0.5223423 -0.1185952 0.5233333 -0.1185952 0.5243243 -0.1185952 0.5253153 -0.1185952 0.5263063 -0.1082957 0.5272973 -0.1082957 0.5282883 -0.1082957 0.5292793 -0.1082957 0.5302703 -0.1082957 0.5312613 -0.1474496 0.5322523 -0.1474496 0.5332432 -0.1474496 0.5342342 -0.1474496 0.5352252 -0.1474496 0.5362162 -0.235981 0.5372072 -0.235981 0.5381982 -0.235981 0.5391892 -0.235981 0.5401802 -0.2068708 0.5411712 -0.2068708 0.5421622 -0.2068708 0.5431532 -0.2068708 0.5441441 -0.3258565 0.5451351 -0.3258565 0.5461261 -0.3258565 0.5471171 -0.3258565 0.5481081 -0.3258565 0.5490991 -0.550012 0.5500901 -0.550012 0.5510811 -0.550012 0.5520721 -0.550012 0.5530631 -0.550012 0.554054 -0.4168597 0.555045 -0.4168597 0.556036 -0.4168597 0.557027 -0.4168597 0.558018 -0.4168597 0.559009 -0.3967566 0.56 -0.3967566 0.560991 -0.3967566 0.561982 -0.3967566 0.562973 -0.3967566 0.563964 -0.2825576 0.564955 -0.2825576 0.565946 -0.2825576 0.5669369 -0.2825576 0.5679279 -0.2825576 0.5689189 -0.3153637 0.5699099 -0.3153637 0.5709009 -0.3153637 0.5718919 -0.3153637 0.5728829 -0.3153637 0.5738739 -0.2498191 0.5748649 -0.2498191 0.5758559 -0.2498191 0.5768468 -0.2498191 0.5778378 -0.2498191 0.5788288 -0.1480062 0.5798198 -0.1480062 0.5808108 -0.1480062 0.5818018 -0.1480062 0.5827928 -0.1480062 0.5837838 -0.07978047 0.5847748 -0.07978047 0.5857658 -0.07978047 0.5867568 -0.07978047 0.5877477 -0.07978047 0.5887387 -0.1235271 0.5897297 -0.1235271 0.5907207 -0.1235271 0.5917117 -0.1235271 0.5927027 -0.1235271 0.5936937 -0.05531641 0.5946847 -0.05531641 0.5956757 -0.05531641 0.5966667 -0.05531641 0.5976577 -0.03709525 0.5986486 -0.03709525 0.5996396 -0.03709525 0.6006306 -0.03709525 0.6016216 0.02806833 0.6026126 0.02806833 0.6036036 0.02806833 0.6045946 0.02806833 0.6055856 0.02806833 0.6065766 0.06710189 0.6075676 0.06710189 0.6085586 0.06710189 0.6095495 0.06710189 0.6105405 0.06710189 0.6115315 0.1010416 0.6125225 0.1010416 0.6135135 0.1010416 0.6145045 0.1010416 0.6154955 0.1010416 0.6164865 0.1594458 0.6174775 0.1594458 0.6184685 0.1594458 0.6194595 0.1594458 0.6204505 0.1594458 0.6214414 0.1594458 0.6224324 0.01626551 0.6234234 0.01626551 0.6244144 0.01626551 0.6254054 0.01626551 0.6263964 0.01626551 0.6273874 0.1444813 0.6283784 0.1444813 0.6293694 0.1444813 0.6303604 0.1444813 0.6313514 0.2112599 0.6323423 0.2112599 0.6333333 0.2112599 0.6343243 0.2112599 0.6353153 0.2112599 0.6363063 0.2584803 0.6372973 0.2584803 0.6382883 0.2584803 0.6392793 0.2584803 0.6402703 0.2584803 0.6412613 0.1548445 0.6422523 0.1548445 0.6432432 0.1548445 0.6442342 0.1548445 0.6452252 0.1548445 0.6462162 0.2086690 0.6472072 0.2086690 0.6481982 0.2086690 0.6491892 0.2086690 0.6501802 0.2086690 0.6511712 0.2553463 0.6521622 0.2553463 0.6531532 0.2553463 0.6541441 0.2553463 0.6551351 0.3089286 0.6561261 0.3089286 0.6571171 0.3089286 0.6581081 0.3089286 0.6590991 0.3089286 0.6600901 0.3327296 0.6610811 0.3327296 0.6620721 0.3327296 0.663063 0.3327296 0.664054 0.3327296 0.665045 0.3491779 0.666036 0.3491779 0.667027 0.3491779 0.668018 0.3491779 0.669009 0.3491779 0.67 0.3852874 0.670991 0.3852874 0.671982 0.3852874 0.672973 0.3852874 0.673964 0.3852874 0.674955 0.4184301 0.675946 0.4184301 0.676937 0.4184301 0.6779279 0.3723023 0.6789189 0.3723023 0.6799099 0.3723023 0.6809009 0.3723023 0.6818919 0.3723023 0.6828829 0.4420375 0.6838739 0.4420375 0.6848649 0.4420375 0.6858559 0.4420375 0.6868468 0.4420375 0.6878378 0.3656313 0.6888288 0.3656313 0.6898198 0.3656313 0.6908108 0.3656313 0.6918018 0.3656313 0.6927928 0.4132663 0.6937838 0.4132663 0.6947748 0.4132663 0.6957658 0.4132663 0.6967568 0.4132663 0.6977477 0.4130172 0.6987387 0.4130172 0.6997297 0.4130172 0.7007207 0.4130172 0.7017117 0.471093 0.7027027 0.471093 0.7036937 0.471093 0.7046847 0.471093 0.7056757 0.471093 0.7066667 0.5693275 0.7076577 0.5693275 0.7086486 0.5693275 0.7096396 0.5693275 0.7106306 0.5693275 0.7116216 0.5004023 0.7126126 0.5004023 0.7136036 0.5004023 0.7145946 0.5004023 0.7155856 0.5004023 0.7165766 0.5583893 0.7175676 0.5583893 0.7185586 0.5583893 0.7195495 0.5583893 0.7205405 0.4584739 0.7215315 0.4584739 0.7225225 0.4584739 0.7235135 0.4584739 0.7245045 0.4584739 0.7254955 0.4880468 0.7264865 0.4880468 0.7274775 0.4880468 0.7284685 0.4880468 0.7294595 0.4880468 0.7304505 0.4607382 0.7314414 0.4607382 0.7324324 0.4607382 0.7334234 0.4607382 0.7344144 0.4607382 0.7354054 0.5033603 0.7363964 0.5033603 0.7373874 0.5033603 0.7383784 0.5033603 0.7393694 0.5033603 0.7403604 0.4639921 0.7413514 0.4639921 0.7423423 0.4639921 0.7433333 0.4639921 0.7443243 0.4639921 0.7453153 0.4102321 0.7463063 0.4102321 0.7472973 0.4102321 0.7482883 0.4102321 0.7492793 0.4102321 0.7502703 0.3973476 0.7512613 0.3973476 0.7522523 0.3973476 0.7532432 0.3973476 0.7542342 0.3973476 0.7552252 0.3859574 0.7562162 0.3859574 0.7572072 0.3859574 0.7581982 0.3859574 0.7591892 0.3859574 0.7601802 0.4392997 0.7611712 0.4392997 0.7621622 0.4392997 0.7631532 0.4392997 0.7641441 0.4392997 0.7651351 0.5236798 0.7661261 0.5236798 0.7671171 0.5236798 0.7681081 0.5236798 0.7690991 0.5236798 0.7700901 0.5764471 0.7710811 0.5764471 0.772072 0.5764471 0.773063 0.5764471 0.774054 0.5764471 0.775045 0.6498502 0.776036 0.6498502 0.777027 0.6498502 0.778018 0.6498502 0.779009 0.6498502 0.78 0.6052627 0.780991 0.6052627 0.781982 0.6052627 0.782973 0.6052627 0.783964 0.5014514 0.784955 0.5014514 0.785946 0.5014514 0.786937 0.5014514 0.787928 0.4142086 0.7889189 0.4142086 0.7899099 0.4142086 0.7909009 0.4142086 0.7918919 0.4142086 0.7928829 0.4632936 0.7938739 0.4632936 0.7948649 0.4632936 0.7958559 0.4632936 0.7968468 0.4632936 0.7978378 0.4463942 0.7988288 0.4463942 0.7998198 0.4463942 0.8008108 0.4463942 0.8018018 0.4463942 0.8027928 0.4590706 0.8037838 0.4590706 0.8047748 0.4590706 0.8057658 0.4590706 0.8067568 0.4590706 0.8077477 0.4678455 0.8087387 0.4678455 0.8097297 0.4678455 0.8107207 0.4678455 0.8117117 0.4678455 0.8127027 0.548241 0.8136937 0.548241 0.8146847 0.548241 0.8156757 0.548241 0.8166667 0.548241 0.8176577 0.588082 0.8186486 0.588082 0.8196396 0.588082 0.8206306 0.588082 0.8216216 0.588082 0.8226126 0.6015888 0.8236036 0.6015888 0.8245946 0.6015888 0.8255856 0.6015888 0.8265766 0.6015888 0.8275676 0.6387331 0.8285586 0.6387331 0.8295495 0.6387331 0.8305405 0.6387331 0.8315315 0.6387331 0.8325225 0.6155009 0.8335135 0.6155009 0.8345045 0.6155009 0.8354955 0.6155009 0.8364865 0.6155009 0.8374775 0.5645217 0.8384685 0.5645217 0.8394595 0.5645217 0.8404505 0.5645217 0.8414414 0.5322565 0.8424324 0.5322565 0.8434234 0.5322565 0.8444144 0.5322565 0.8454054 0.5640038 0.8463964 0.5640038 0.8473874 0.5640038 0.8483784 0.5640038 0.8493694 0.5640038 0.8503604 0.626635 0.8513514 0.626635 0.8523423 0.626635 0.8533333 0.626635 0.8543243 0.626635 0.8553153 0.6704094 0.8563063 0.6704094 0.8572973 0.6704094 0.8582883 0.6704094 0.8592793 0.6704094 0.8602703 0.6466946 0.8612613 0.6466946 0.8622523 0.6466946 0.8632432 0.7058764 0.8642342 0.7058764 0.8652252 0.7058764 0.8662162 0.7058764 0.8672072 0.677703 0.8681982 0.677703 0.8691892 0.677703 0.8701802 0.677703 0.8711712 0.677703 0.8721622 0.7697361 0.8731532 0.7697361 0.8741441 0.7697361 0.8751351 0.7697361 0.8761261 0.6871 0.8771171 0.6871 0.8781081 0.6871 0.8790991 0.6871 0.8800901 0.6871 0.881081 0.7433981 0.882072 0.7433981 0.883063 0.7433981 0.884054 0.7433981 0.885045 0.7433981 0.886036 0.6772184 0.887027 0.6772184 0.888018 0.6772184 0.889009 0.6772184 0.89 0.6772184 0.890991 0.771042 0.891982 0.771042 0.892973 0.771042 0.893964 0.771042 0.894955 0.771042 0.895946 0.82236 0.896937 0.82236 0.897928 0.82236 0.898919 0.82236 0.8999099 0.8468922 0.9009009 0.8468922 0.9018919 0.8468922 0.9028829 0.8468922 0.9038739 0.8468922 0.9048649 0.9411 0.9058559 0.9411 0.9068468 0.9411 0.9078378 0.9411 0.9088288 0.9411 0.9098198 0.9859473 0.9108108 0.9859473 0.9118018 0.9859473 0.9127928 0.9859473 0.9137838 0.9859473 0.9147748 0.8998364 0.9157658 0.8998364 0.9167568 0.8998364 0.9177477 0.8998364 0.9187387 0.8998364 0.9197297 0.8364399 0.9207207 0.8364399 0.9217117 0.8364399 0.9227027 0.8364399 0.9236937 0.8364399 0.9246847 0.7796059 0.9256757 0.7796059 0.9266667 0.7796059 0.9276577 0.7796059 0.9286486 0.7796059 0.9296396 0.8325947 0.9306306 0.8325947 0.9316216 0.8325947 0.9326126 0.8325947 0.9336036 0.8325947 0.9345946 0.8086544 0.9355856 0.8086544 0.9365766 0.8086544 0.9375676 0.7417212 0.9385586 0.7417212 0.9395495 0.7417212 0.9405405 0.7417212 0.9415315 0.7417212 0.9425225 0.6961463 0.9435135 0.6961463 0.9445045 0.6961463 0.9454955 0.6961463 0.9464865 0.7140584 0.9474775 0.7140584 0.9484685 0.7140584 0.9494595 0.7140584 0.9504505 0.7140584 0.9514414 0.7086224 0.9524324 0.7086224 0.9534234 0.7086224 0.9544144 0.7086224 0.9554054 0.7086224 0.9563964 0.6277234 0.9573874 0.6277234 0.9583784 0.6277234 0.9593694 0.6277234 0.9603604 0.6277234 0.9613514 0.6609766 0.9623423 0.6609766 0.9633333 0.6609766 0.9643243 0.6609766 0.9653153 0.6401879 0.9663063 0.6401879 0.9672973 0.6401879 0.9682883 0.6401879 0.9692793 0.6401879 0.9702703 0.6867343 0.9712613 0.6867343 0.9722523 0.6867343 0.9732432 0.6867343 0.9742342 0.6867343 0.9752252 0.704195 0.9762162 0.704195 0.9772072 0.704195 0.9781982 0.704195 0.9791892 0.704195 0.9801802 0.6585296 0.9811712 0.6585296 0.9821622 0.6585296 0.9831532 0.6585296 0.9841441 0.6585296 0.9851351 0.6520931 0.9861261 0.6520931 0.9871171 0.6520931 0.9881081 0.6520931 0.9890991 0.5826448 0.99009 0.5826448 0.991081 0.5826448 0.992072 0.5826448 0.993063 0.5826448 0.994054 0.5926264 0.995045 0.5926264 0.996036 0.5926264 0.997027 0.5926264 0.998018 0.5926264 0.999009 0.637794 1 0.637794 /     \end{sparkline}     \NN     SPSPz           & file2             & Weekly           &*sparkline2*\LL      }          \end{document}      From the `doinside = \small \renewcommand\arraystretch{1.5}` the line spacing is set to 1.5. I would like the sparkline to have the same height, so i fits into the table... Have tried `\sparklineheight`, but can't get i to work...


title: can the to-path in pgf/tikz circuits be used to name a node

text: I am trying to define a few components for my circuits library to use with the `circuit.ee` library, and I have a couple of questions:   1. Does the to-path create a node on its path or just a complex path i.e. in               \begin{tikzpicture}[circuit ee IEC]     \draw (0,0) to[resistor] (3,0);     \end{tikzpicture}      is the resistor a node?   2. If it is indeed a node (which I think it is since I can create anchors for it) is it possible to name the node and subsequently access its anchors? I have tried the following that does not work              \begin{tikzpicture}[circuit ee IEC]     \draw (0,0) to[resistor, name=res] (3,0);     \draw (0,2) -- (res.north);     \end{tikzpicture}      and a bunch of other things that didn't work. any help appreciated!


title: Resolve xkeyval key from a definition

text: How can I resolve an `xkeyvalue` from a definition? The code               \documentclass{article}     \usepackage{xkeyval}          \define@key{mykeys}{foo}[foo-default]{\def\x{Key 'foo' does nothing}}     \define@key{mykeys}{bar}[bar-default]{}     \def\KEYS{foo,bar=key}          \begin{document}     \setkeys{mykeys}{\KEYS}     \end{document}      fails because `foo,bar=key` is not recognized as two keys, but only as one key. In other words, `xkeyval` does not recognize the comma between the keys `foo` and `bar=key`. How can I make xkeyval identify the comma correctly?


title: Image wrap in equation

text: I've started to work with Latex recently but I can't figure out how to put an image to the right of my equations (whichare in an align-environment). I've read in other topics to use a tabular to fix the problem. Yet it didn't work for me as kill the whole textflow and my image won't rescale. Below you'll find my code. Could you guys help out?               \documentclass{article}     \usepackage[dutch]{babel}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{wrapfig}     \usepackage{textcomp}     \usepackage{xspace}     \setlength{\parindent}{0pt}     \begin{document}     In dit document worden enkele van de belangrijkste bewijsjes opgesomd uit de cursus      Elektriciteit 1, gegeven door Anita Van Der Maele aan de UGent campus Schoonmeersen.      \section{Elektrostatica 1}     \subsection{De elektrische potentiaal}          \begin{align*}         W & = F \, d\\          \Delta W & = q\vec{E} \cdot \Delta\vec{s}\\     \end{align*}          Splits de veldsterkte in zijn componenten. Bedenk dat de component loodrecht op de verplaatsing geen arbeid uitvoert          \begin{tabular}{l r}     {\begin{align*}         \Delta W & = q\vec{E_1} \cdot \Delta\vec{s} \\         & = qE_1 \Delta s \cos\alpha         \intertext{Daarna gaan we over naar de volledige tekening (tekening 2)     Hierbij willen we berekenen welke arbeid wordt geleverd tussen A en B.}         W^B_A & = \sum^{B}_A \Delta W\\         & = q \sum^B_A \vec{E_1} \cdot \Delta s\\         & = q \lim_{\Delta s \to 0} \sum^B_A \vec{E} \cdot \Delta s\\         & = q \int_A^B \vec{E} \cdot \, \vec{ds}\\         & = q \int_A^B \frac{Q \cos \alpha}{4 \pi \epsilon r^2} \, ds\\         & =  \frac{q Q}{4 \pi \epsilon } \int_{r_a}^{r_b} \frac{1}{r^2} \, dr\\         \intertext{bedenk dat de integraal van een macht, \'e\'en over 'de nieuwe macht' maal de variabele tot de 'oude macht plus \'e\'en' wordt.}\\         & = \frac{q Q}{4 \pi \epsilon } \left[-\frac{1}{r_b} - (-\frac{1}{r_a})\right]\\         &  = \frac{q Q}{4 \pi \epsilon } \left[\frac{1}{r_a} - \frac{1}{r_b}\right]\\         \intertext{ Per definitie is het potentiaalveschil V = $$\frac{Q}{4 \pi \epsilon r}$$}         & = q(V_a-V_b)     \end{align*}}     &     \includegraphics[0.5\textwidth]{Ele1.jpg}     \end{tabular}      Thanks in advance


title: Longtable vertical placement

text: I'm fighting with Google. I have a `longtable` with manual breaks, so in every page there is an empty space after the table, I want to vertically center the `longtable`. How can I do that?


title: Beamer, TOC other language

text: In this code, I would like to have that the words out of Table of Contents (like section) will be translate into dutch. I thought that it would work with `babel` but it doesn't work and Latex doesn't give any error.               \documentclass{beamer}          \usetheme{PracWisk}     \usepackage[dutch]{babel}     \usepackage{tikz-qtree}          \AtBeginSection[] % Do nothing for \section*     {     \begin{frame}<beamer>     \frametitle{Outline - Section \thesection}     \tableofcontents[currentsection]     \end{frame}     }                    \title{ P }     \date[24 mei]{24 mei 2013\\       Bachelorproject}     \author[]{S}     \institute[Gent]{$3$e Bachelor Wiskunde\\       Gent}          \begin{document}          \begin{frame}[plain]       \titlepage     \end{frame}          \section{Schets}          \begin{frame}{\secname}     \centering     \begin{tikzpicture}[       every tree node/.style={align=center, anchor=north},       level distance=50pt]       \Tree [. {a} [.{b} [.{\textit{c} \\ $d=e$} {\small f} ] ]                       [.{g} [.{\textit{h}:\\ $i=j$} {\small k} ] ] ]                                                                                \end{tikzpicture}     \end{frame}           \begin{frame}[t]{\secname}        \begin{figure}[h]           \includegraphics[width=5cm,height=5cm]{schroef}           \caption{de}         \end{figure}     \end{frame}           \section{Definitie functionaal}          \subsection{Inleiding}          \begin{frame}[t]{\secname}{\subsecname}           \vspace{3mm}          Funct: p $\mapsto$ f \\           \vspace{8mm}         \textbf{V}: De booglengte\\          \begin{equation*}           f \mapsto j          \end{equation*}              \vspace{5mm}          \uncover<2->{\textbf{Natuurkunde} $\rightarrow$ Speciale}     \end{frame}          \subsection{Lagrangedichtheid}          \begin{frame}[t]{\secname}{\subsecname}       \uncover<1-4>{Fysisch}         \vspace{5mm}          \begin{itemize}             \setlength{\itemsep}{7pt}             \item <2-4> Onafhankelijke                  \item <3-4> Veld             \item[] <4> $\Rightarrow$ De velden          \end{itemize}          \vspace{-15mm}         \uncover<5->{          Lagrangedichtheid:          \begin{eqnarray*}              i = j       \end{eqnarray*}          \vspace{5mm}        \footnotesize{waarbij} $k = m$ \footnotesize{geldt.} }     \end{frame}          \subsection{Uiteindelijke gedaante}          \begin{frame}[c]{\secname}{\subsecname}        Gebrui\\           \begin{block}{Fun}         \textbf{Veronderstellingen}:           \begin{itemize}            \item Domein            \item gladde rand          \end{itemize}                \vspace{5mm}          \textbf{Definitie}:\\                \begin{equation*}                J(\psi) = \int_{\Omega}{\mathcal{L}(\text{$x$, $\psi^{\alpha}(x)$, $\psi^{\alpha}_{x_{i}}(x)$)$dx$}}.               \end{equation*}                $\psi$          \end{block}     \end{frame}          \end{document}


title: Multiple choice with answers at the end of the chapter

text: I would like to set up an environment for multiple choice questions, such that the list of the correct answers, and some lines of comments, will be typeset at the end of the chapter. Something like this:               \question     This is the question     \choice First guess     \truechoice Second guess {This is a comment that goes at the end of the chapter}     \choice Third guess      At the end of the chapter, I would like to have a list of question numbers (automatically written), the correct answer (correctly numbered), and the comment. How could i do?


title: TeXworks $ problem

text: This reports me               \documentclass{article}     \usepackage[utf8]{inputenc}          \author{Jane Doe}     \date{June 2011}          \begin{document}          \begin{math}          \end{math}          \end{document}       Why?


title: Matrix from graph description

text: Are there any LaTeX package that draws/plots/generates a matrix from a "graph" description (node relations). Any type of description/language could be useful. The trick is to generate automaticly a matrix from a description of "relations". For example, from the following "mathematical" relation:               (1, 1)     (1, 2)     (1, 5)     (2, 1)     (2, 3)     (2, 5)     (3, 2)     (3, 4)     (4, 3)     (4, 5)     (4, 6)     (5, 1)     (5, 2)     (5, 4)     (6, 4)      which represents the next graph: > ![An example graph](http://i.stack.imgur.com/2mLrH.png) to get the following matrix representation of this relation: ![Matrix representation](http://i.stack.imgur.com/v89dv.png) Are there packages available for LaTeX to accomplish this type of "translation"? (from the mathematical relation to the matrix representation of its corresponding graph).


title: Wrapping a table in two column text

text: I have a two column text and would like to wrap it around a table, yet in such a way that the table spans over both columns. Ideally the text in left column would continue on the left below the table and _vice versa_ for the text in the right column. Small example:               \documentclass[english]{paper}          \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{babel}     \usepackage{geometry}     \usepackage{array}     \usepackage{float}     \usepackage{amsmath}     \usepackage{color}     \usepackage{colortbl}     \usepackage{multirow}      \usepackage{lipsum}     \usepackage{multicol}     \usepackage{wrapfig}          \makeatletter          \geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=2cm,rmargin=2cm,headheight=2cm,headsep=2cm,footskip=3cm}          \providecommand{\tabularnewline}{\\}          \floatstyle{ruled}          \definecolor{Gray}{gray}{0.9}          \makeatother          \begin{document}          \begin{multicols}{2}          \lipsum[1-3]          \begin{wraptable}{o}{\textwidth}     \begin{tabular}{ccc|ccc|ccc}  \multicolumn{3}{c|}{kappa 1} & \multicolumn{3}{c|}{kappa 2} & \multicolumn{3}{c}{kappa 3}\tabularnewline       \hline        coverage & MSD$^*$ & MSE$^{**}$ & coverage & MSD & MSE & coverage & MSD & MSE\tabularnewline       \hline      \rowcolor{Gray}       0.96 & 0.068 & 1.005 & 0.98 & 0.283 & 1.097 & - & - & -\tabularnewline       0.98 & 0.007 & 0.008 & 0.96 & 0.446 & 1.551 & - & - & -\tabularnewline      \rowcolor{Gray}      0.96 & 0.010 & 0.009 & 0.96 & -0.007 & 2.435 & 0.95 & 0.017 & 0.026\tabularnewline       \end{tabular}     \caption{table}     \end{wraptable}          \lipsum[4-5]          \end{multicols}     \end{document}


title: Determine height of tabular

text: I am working in a minipage, because I want two columns next to each other in landscape mode. In the first column I would like to place a figure, and then a tabular. I am scaling the tabular to exactly fit the minipage. This is roughly the outline:               \newpage     \begin{minipage}{0.50\textwidth}     \begin{center}     \resizebox{\columnwidth}{!}{%     % latex table generated in R 2.14.1 by xtable 1.6-0 package     % Thu Nov  8 13:31:32 2012     \begin{tabular}     ...     \end{tabular}%     }     \end{center}     \end{minipage}     \begin{minipage}{0.50\textwidth}     \end{minipage}      What I now would like to do is plot the remaining figure in exactly the correct proportions to fill the remainder of the page - the width is fairly easy, but what is the height? The problem is also that I don't know the number of rows of the table in advance. So I need some way to determine the height of the tabular, subtract it from the textheight, to obtain my remaining space for the figure. `\settoheight` unfortunately only works on text.


title: Citing websites in APA style with Zotero

text: Using `natbib` and `apa-good` as style, I am having problems displaying a citation of type website or blog post.               \usepackage{natbib}         \bibliographystyle{apa-good}     \bibliography{msc_thesis}          Test \citep{schroeder_facebook_2012}      `msc_thesis.bib` contains, when taking the metadata directly from a website using Zotero:               @misc{schroeder_facebook_2012,         title = {Facebook Hits One Billion Active Users},         url = {http://mashable.com/2012/10/04/facebook-one-billion/},         abstract = {Facebook just officially reached one billion active users, Facebook {CEO} and co-founder Mark Zuckerberg has announced.},         urldate = {2013-07-17},         journal = {Mashable},         author = {Schroeder, Stan},         month = oct,         year = {2012},     }      APA style should be, according to http://www.studygs.net/citation.htm: **Author. (Date published if available; n.d.--no date-- if not). Title of article. Title of web site . Retrieved date. From URL.** But what I get is: Schroeder, S. (2012). Facebook hits one billion active users. I don't know whether `apa-good` is a "good" choice, it has always worked well for other type of media.


title: How do I realize an arrow representing "line numbers" in LyX?

text: I want to draw an arrow, who shall represent line numbers like in the following screenshot. ![line numbers](http://i.stack.imgur.com/QH91w.png) I struggeled with xymatrix, but this doesn't seem to be the right approach. Any ideas?


title: Setting the width of columns that are aligned with the dcolum package

text: I try to have a table with some columns aligned with respect to the `\pm` sign. I managed to do that with the dcolumn package. However, I do not know how to set the columns to a fixed width. How could I create a table like the following one, but with columns 2 and 3 with a fixed with of, say, 3cm?               \documentclass[a4paper]{article}     \usepackage{dcolumn}          \begin{document}          \begin{table}     \begin {center}     \begin{tabular}{m{2.0cm} D{,}{\pm}{-1} D{,}{\pm}{-1}}     \hline      \hline \\[-2.0ex]     Runs   & \multicolumn{1}{c}{Measure 1} & \multicolumn{1}{c}{Another Measure 2} \\[0.3ex]     \hline \\[-2.0ex]     Run 1  & 12.0,0.2                      & 55,1    \\     Run 2  & 14.3,0.5                      & 101,3   \\[0.3ex]     \hline     \hline     \end{tabular}     \end {center}     \end{table}               \end{document}


title: (missing space in) "today" formatting in Polish using polyglossia

text: Just discovered TeX few days ago :) Experimenting a lot now. I am trying to make a template for my thesis (which is going to use quotations and bibliography in a good few languages and some serious math too). XeLaTeX seems to be giving me least problems now (but it was tough at the beginning). Anyways, I am a bit confused about this missing space between month name and the year in the date for the Polish version of it... Am I doing something wrong or is there a bug?               %!TEX TS-program = XeLaTeX     %!TEX encoding = UTF-8 Unicode     \documentclass{minimal}          \usepackage[no-math]{fontspec}     \newfontfamily\greekfont[Script=Greek, Scale=MatchUppercase, Ligatures=TeX]{Linux Libertine O}     \newfontfamily\cyrillicfont{Linux Libertine O}     \usepackage{polyglossia}                                     \setdefaultlanguage[variant=british]{english}     \setotherlanguages{latin,greek,russian,polish,german}          \begin{document}          greek (\textgreek[variant=ancient]{ελληνικά \today}),     russian (\textrussian{русский \today}),     polish (\textpolish{polski \today}),     german (\textgerman{Deutsch \today}),     latin (\textlatin{Latina \today}),          \end{document}


title: Colored symbols

text: First of all, I apologize if this is a repetitive question. I searched, but couldn't find it. I was wondering if I can change the color of symbols in latex. For example `\ast` always give me a _black symbol_. Is there anyway to change it? (either changing it permanently throughout the document or changing it just once.


title: Make backrefs invisible in hardcopy

text: Is there a way to make bibliography back-references display and hyperlink in a PDF file but not print in a hard copy. When I use               \usepackage[colorlinks=false,backref=page]{hyperref}      I get a red frame around hyperlinks that is not printed. Can I get this kind of behavior applied to the link itself using the backref hooks?


title: Hiding and unhiding math text

text: Can Latex be used to type a math article containing invisible proofs, each of which becomes visible under the relevant theorem when a button or link is clicked?


title: How to set \framed to make the baseline of the whole \framed as same as the first line in this \framed in ConTeXt?

text: An simple example:               \starttext     \setupframed[align=right,frame=off,offset=none]     \framed{A\hskip3em\framed{B\\ C}}     \stoptext      How can I set the `framed` which contains `B\\ C` so that the baseline of `\framed{B\\ C}` can have the same baseline with the first line `B`? The same result can be achieved in plain TeX as follows:               \hbox{\vtop{\hbox{A}}\hskip3em\vtop{\hbox{B}\hbox{C}}}      What's the method in ConTeXt?


title: Current line highlighting in TeXstudio

text: I modified color scheme of editor to use darker colors, but there is no current line highlighting option. So I can't remove bright white highlighting of the current line. Is there a way to disable highlighting of the current line or to change its color?


title: Footnote marker placement in heading of theorem/definition/etc.

text: I have a definition, and a footnote which refers to the whole definition.  So I’d ideally like an output looking something like: > **Definition 1.5 3.**   A footnote is a small aside, usually placed at the > bottom of a page and marked by a tag in the main text. > > * * * > > 3Some people think that footnotes are bad style. Is there a good way to get this placement of the footnote marker?  Neither of the following comes out right (for obvious reasons): `\begin{definition}\footnote{Footnote text.} We define \ldots` `\begin{definition}[\footnote{Footnote text.}] We define \ldots` I’m using `amsthm`, but answers for without that would be interesting too.


title: Visualizing Cluster Data

text: the question in the headline is formulated very abstract, because I am still not sure what the best way of visualizing the Data I have is. The problem is that I have two mappings of a dataset which are separated into k different clusters. The data points in the clusters of both mappings will probably have a big overlap, but those that "migrated" to another cluster should be, in a way, shown. What I try to implement (I work very seldom with latex) is this: ![Preferably with pgf, as that is the package I have worked with.](http://i.stack.imgur.com/k2GRPm.jpg) The thing is, in that picture there are only 3 clusters and it already gets cluttered. The actual data will have ten or more clusters, so I would also be very happy for suggestions on how the problem could be solved in a better way. Details: Each bar represents a mapping of the data. As they contain the same number of data points they would be of the same height. The separating lines on them (together with "C_i") would indicate the cluster that amount of data is associated with. That itself would be straighforward to solve, but the arrows, whose thickness indicates how many data points are identical between each cluster of the sets are the problem. I currently have no MWE, I hope to append one to this questions later on. edit 1: The data itself are words from a text, such as: > >     for as on with by 77 ’s he that at from his it an >   Then both mappings give each word a (in most cases very similar) value, which is used to separate the data into clusters. The final (examplary) output is just Mapping 1: > >     for[1] as[1] on[3] with[0] by[1] 77[2] ’s[0] he[4] that[4] at[1] from[3] > his[0] it[1] an[0] >   Mapping 2: > >     for[1] as[1] on[2] with[0] by[1] 77[2] ’s[0] he[3] that[3] at[1] from[4] > his[0] it[1] an[1] >   , where the number indicates which cluster is associated with that value. I just notice I called the mappings "dataset" in the picture - my bad. There only is one dataset.


title: Vertically center elements in table doesn't work

text: I am trying to vertical and horizontal align items in a table. I tried to follow what I found on the internet, including on this site, but it seems not to work for the last column. Here is what I have.               \begin{table}[!h]     \begin{center}     \begin{tabular}{|c||c|c|}          \hline     Doping & $\alpha_b$ $\left(\textup{cm}^{-1}\right)$ & $\eta_{ext}$ \\     \hline     \hline      5 \% & $4 \cdot 10^{-4}$ & 0.995 \\      \hline     7.5 \% & $6 \cdot 10^{-4}$ & 0.992 \\       \hline     10 \% & $8 \cdot 10^{-4}$ & 0.987 \\     \hline     \end{tabular}     \caption{Caption.}     \label{theor_cooling_efficiency_parameters}     \end{center}     \end{table}      ![Starting table](http://i.stack.imgur.com/af1Be.png) I want to increase the row height, since it seems too short, especially in the middle column (although it surprises me that LaTeX does not automatically adapt the rows to the math formulas inside) Anyway, I included the array packages, increased manually the row's heights via [2ex] after the \ and set the vertical alignment with m. Here is the code:               \begin{table}[!h]     \begin{center}     \begin{tabular}{|m{3em}||m{4.8em}|m{3em}|}          \hline     Doping & $\alpha_b$ $\left(\textup{cm}^{-1}\right)$ & $\eta_{ext}$ \\[2ex]      \hline     \hline      5 \% & $4 \cdot 10^{-4}$ & 0.995 \\[2ex]       \hline     7.5 \% & $6 \cdot 10^{-4}$ & 0.992 \\[2ex]       \hline     10 \% & $8 \cdot 10^{-4}$ & 0.987 \\[2ex]       \hline     \end{tabular}     \caption{Caption.}     \label{theor_cooling_efficiency_parameters}     \end{center}     \end{table}      And here is the result: ![Not exactly what I wanted](http://i.stack.imgur.com/p6Rbc.png) As you can see, the first two columns are ok, but not the third, which is not centered at all. How can I fix this? Thanks in advance for all the answers. P.S.: I am aware that the columns are not horizontally centered and I know how to fix that, for example, by changing the tabular initialization to               \begin{tabular}{|>{\centering\arraybackslash}m{.1\linewidth}||     >{\centering\arraybackslash}m{.14\linewidth}|>{\centering\arraybackslash}m{.1\linewidth}|}      which centers horizontally the columns but does not fix the third column vertical alignment. ![Horizontal center doesn't solve the problem](http://i.stack.imgur.com/DMfwG.png)


title: How to improve texdoc results?

text: `texdoc` often fails for me, e.g.               $ locate beameruserguide.pdf     /usr/share/doc/latex-beamer/beameruserguide.pdf.gz          $ texdoc -l beamer     1 /usr/share/texmf-texlive/doc/latex/tdclock/tdclock-beamer-example.pdf     Please enter the number of the file to view, anything else to skip:          $ texdoc beameruserguide     Sorry, no documentation found for beameruserguide.      On the other hand this works:               $ texdoc -l tikz     1 /usr/share/texmf/doc/pgf/pgfmanual.pdf.gz      Thus, the questionable compressing of pdfs by the Ubuntu packages does not seem to be the reason. (I am using Ubuntu 10.04) Sure, I often use google to find LaTeX documentation, but sometimes net access is not available and often the current documentation contains some nice feature which are not available yet with the package versions installed on the local system.


title: Remove margin from listings in beamer

text: I am including some code in my beamer document. I would like to get rid of all margins, so I can include as much code as possible. This is the code I am trying:               \documentclass[]{beamer}     \usepackage[spanish]{babel}     \usepackage[utf8]{inputenc}      \usepackage{listings}      \usepackage{caption}       \usepackage{color}     \definecolor{comentaryGreen}{rgb}{0,0.6,0}     \lstset{              basicstyle=\tiny  ,              numbers=none,                            tabsize=1,              extendedchars=true,                       breaklines=true,              language=Java,                                            keywordstyle=\color{blue},                     commentstyle=\color{comentaryGreen},              rulecolor=\color{black},                       showspaces=false,                showtabs=false,                 showstringspaces=false,               xleftmargin=0pt,              framexleftmargin=0pt,              framexrightmargin=0pt,              framexbottommargin=0pt,      }      \lstloadlanguages{              Java      }      \usetheme{Antibes}     \usecolortheme{dolphin}          \begin{frame}         \lstinputlisting[linerange={529-550}]{source/cGaussianBlur.java}     \end{frame}          \end{document}      (the code I used is available in http://imagej.nih.gov/ij/source/ij/plugin/filter/GaussianBlur.java) This is the result: ![enter image description here](http://i.stack.imgur.com/8Zbcx.png) How can I get rid of those margins?


title: Which TeX programs produce dvi output?

text: I know that `tex` and `latex` produce `dvi` output. Are there any others?


title: Managing acronyms with a macro that preserves the full name

text: I use the `acronym` package to create and manage acronyms in my document, e.g.:               \newacro{css}[CSS]{Cascading Style Sheets}          Can you use \ac{css}?      However, sometimes I must add typesetting to documents which already have acronyms typed out entirely, but I still need them to be automatically shortened after the first appearance. They are typed out like this:               Can you use Cascading Style Sheets (CSS)?      As there are such a large number of acronyms, maintaining a list of used acronyms in the preamble creates confusion. E.g.: If I changed the adove to `Can you use \ac{css}?`, but later encountered another different acronym called "css", I could possible introduce an error, and have difficulty checking the data. For this reason, it would be better if I had a syntax which made as few changes to the existing text as possible, such as this:               Can you use \addac{Cascading Style Sheets}{CSS}?      In this way, I can still see the original text that was used, and if I need to use "Customer Support System (CSS)" later in the document, I would not need to worry about managing the duplicate. How can this be done?


title: String Formatting when using PythonTex

text: First of all, many thanks to Geoffrey Poore, the creator of PythonTex. PythonTeX is awesome. I am trying to use it for the first time and really like what it can do. I am having some trouble with using string formatting when using PythonTeX to create LaTeX code. See below for two code snippets. Things work well with Snippet 1, but do not work with Snippet 2. Why is the second snippet failing? How can I use string formatting with PythonTeX. Thank you for your help. **Snippet 1 (Works)**               fig_string = r'''          \begin{figure}[!ht]              \hspace{-0.35in}                    \includegraphics{../../mycode/plots_dir/myplot_'''+fig_id+'''.pdf}          \end{figure}     '''          print(fig_string)      **Snippet 2 (Throws an error)**                   fig_string = r'''             \begin{figure}[!ht]                 \hspace{-0.35in}                     \includegraphics{../../code20121201/simgridplots_paper/gridplot_{0}.pdf}             \end{figure}         '''.format(fig_id)              print(fig_string)      **Error thrown by Snippet 2** This is PythonTeX v0.11               ----  Errors and Warnings for py:default:default  ----       Traceback (most recent call last):     * PythonTeX code error on line 149:         File "pythontex-files-figures_doc/py_default_default.py", line 148, in <module>           '''.format(fig_id)       KeyError: 'figure'


title: Conditioning footnotes on where the \footnotemark is in the page

text: I'd like to have a footnote that refers to text later in the document, and say "... above ..." or "... below ..." depending on whether the text is on the same page (and thus above) the footnote, or on a later page (and thus below) the footnote. How do I do this? Is there a way to do this without manually writing to the aux file? (Is it bad practice to refer to future text in a footnote?) * * * I have it (almost) working with the following code: Right before the footnote:               \makeatletter     \newcommand{\IfDoAbove}{\ifdoabove\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi}     \immediate\write\@auxout{\noexpand\global\noexpand\newif\noexpand\ifsecondbulletabove}     \edef\relevantfootnotepage{\thepage}      In the footnote, `\IfDoAbove{above}{below}` By the text that I care about               \ifnum\relevantfootnotepage=\thepage\relax       \immediate\write\@auxout{\noexpand\global\noexpand\doabovetrue}%     \else       \immediate\write\@auxout{\noexpand\global\noexpand\doabovefalse}%     \fi      But it fails if the text that I care about is in an `\item` which is the first thing on a new page; `\thepage` is the same as the old page, not the new page. Why is this?


title: Putting longtable caption text on subsequent pages

text: I'm using longtable for multi-page tables in a document, and have no trouble using the standard and widely used code for headers on subsequent pages:               \\multicolumn{3}{c}{{\tablename} \thetable{} (Continued)} \\      When I run that I get the following at the top of each subsequent page, as expected:               Table 1.1 (Continued)      However, I'd like to get the rest of the text I defined in the \caption command into the header of subsequent pages as well. Thus, if I defined my caption right after the longtable command as:               \caption{Feasible trips for a highly variable grid} \\      I'd like the header on the second a subsequent pages to look like this:               Table 1.1: Feasible trips for a highly variable grid (Continued)      Maybe this is simple, but I cannot find code or documentation anywhere that describes how to do this. Any help on this would be greatly appreciated.


title: LuaLaTeX + load one particular math symbol from an OTF file

text: I try to load exactly one symbol from an OpenType Font file and use it in a math environment. However, it seems to me, that I can only use the symbol in "normal" text but not in math mode. Here is a minimal example:               \documentclass{article}          \usepackage{fontspec}     \usepackage{unicode-math}          \setmainfont{Latin Modern Roman}     \setmathfont{Latin Modern Math}     \newfontfamily\foo{Untitled1.otf}          \newcommand{\foobar}{\foo\symbol{1}}          \begin{document}     \foobar     \[x \foobar y\]     \end{document} In normal text the symbol appears but in math mode it does not. Do I have to use some special command to load a symbol for a math environment? Or the other way arround. How could I typeset a formula where the first part of the formula is typed in font A and the second part in font B (where A != B)? **Update** The question aims at the following problem. I created a new symbol which is not known to be available in Unicode. Therefore I created a new one and saved in the file Untitled1.otf. Now I want to load this symbol into my document and use it in math formulas. Since the symbol is not known in unicode I cannot use a "standard" symbol to refer to it. Therefore, I thought to use a command and reference the symbol by its index of the OTF file.


title: latexdiff problem in MikTex 2.8 after update: "Perl script not found"

text: Some days ago, I've updated my Miktex 2.8 installation (on Windows 7). However, since doing that I have problems with latexdiff (it did work before). When I run it, I get:               latexdiff: the Perl script could not be found     latexdiff: Data: latexdiff      So, it seems the `latexdiff.exe` (there is one under `C:\Program Files (86)\MikTeX 2.8\miktex\bin\latexdiff.exe`, and another one under `C:\Users\myname\AppData\Roaming\MikTeX\2.8\miktex\bin\latexdiff.exe`) doesn't find the actual Perl script. There are some Perl files under `scripts\latexdiff`. Things I've done/checked:   * I first thought it was a **Perl problem** , but the perl interpreter is still working and available at the command line   If I do `perl "C:\Program Files (x86)\MiKTeX 2.8\scripts\latexdiff\latexdiff -h` the script works fine.   * I've already removed and **reinstalled** the latexdiff package using both the MikTex `Package Maintenance` and `Package Maintenance (Admin)`, but that didn't help.   * It doesn't seem to be an **admin/regular user issue** , as calling either of the two `latexdiff.exe` files explicitly (the global one, or the user one) gives the same problem.   * **Other scripts** like `texdiff` and `pdfcrop` which also use a similar perl-script-redirection setup still can be called without problems.   * the **`miktex\config\scripts.ini`** file seems to refer to the correct path, as it has the line `latexdiff=scripts/latexdiff/latexdiff`.    Although I noticed that the latexdiff lines are the one of only a few ones that do NOT end with `.pl` (`arlatex`, `bundledoc`, `latexpand`, `latexrevise`, `makeglossaries`, `pkfix-helper`, `urlbst` where to other ones without `.pl` extension)   * I've checked the **`miktex\config\update-<date>.log`** files and in the most recent one there is no entry of `latexdiff` in the "Making Per links..." part, wheres in older log files, there was.  I don't want to re-install MikTex to fix this problem. **As a workaround** for now, I have sort-of created a wrapper script that calls `perl "C:\Program Files (x86)\MiKTeX 2.8\scripts\latexdiff\latexdiff`, instead of just `latexdiff.exe`, with whatever options I append. **Some more background** : The reason I updated MikTeX some days ago was because I was having a compile problem when using pdftex. I got the error `I can't find file 'dehypht-x-2009-06-19.tex'.` I tried solving this by updating MikTeX. Didn't help. Was able to resolve it by opening the MikTex Settings program (Windows Start Menu > MikTex > Maintenance > Settings), and deselecting the relevant German language under the Language tab. Don't know if this is relevant or not.


title: How to generate the movie DVD available sound systems symbols?

text: On the back every movie DVD I have seen there are bunnch of available sound systems characters, they look like a square (just the outside not solid filled) and a number of filled squares on various positions on the square e.g. right in the center, on the corners etc. You see the little characters right inline. I was wondering if one could do the same with circles etc. too? Consider a square at the same height of the alphabetical characters, then imagine other squares (they seem 1/8 th of the size of the first square), solid, also different number of solid squares in different configuration appears next to Languages, Subtitles and Commentary. ![](http://i.stack.imgur.com/9Iwxt.png) For example, the back of the DVD in the above image, at bottom left, on the right side of the barcode, before the "5.1 English," and right above the "Subtitles", on my DVDs, the similar character appears on the same line of the text and same height though. How does one make them in (La)TeX?


title: Best way to give sources of images used in a beamer presentation

text: What's the best style to cite the sources of images in beamer presentation. How to do it? Since this question may not have a "best answer" I suggest to make it community wiki.


title: \noindent won't work for stopping indentation after a math formula

text: In this minimal working example:               \documentclass{article}     \begin{document}     \begin{description}     \item [{a)}] \begin{flushleft} test1 test1 test1 test1     test2 test2 test2 test2      \[     x^2+x+1=0     \]     %     \noindent test3 test3 test3 test3     \par\end{flushleft}     \item [{b)}] test4 test4 test4 test4     test5 test5 test5 test5     \end{description}     \end{document}      I don't want the               test3 test3 test3 test3      line, after the equation indented. But neither using `\noindent` nor the trick with the "%" from this question worked. Do you have any ideas how I could stop the indentation? (It is preferable, to keep everything inside the               \begin{description}..      block and not to use a different command - or if I have to use a different command, than I would like to use one that allows me to put the "a)" and "b)" at the beginning of each line and handles spacing, like the `\begin{description}` automatically.)


title: creating beamer frame templates

text: I am creating a beamer theme. As part of the theme, I would like to create some frame templates with specific layouts. The simplest of these is a static frame that includes a single graphic centered on a plain frame. I would like the user to be able to invoke this frame like this:               \documentclass[presentation]{beamer}     \usetheme{Zion}     \begin{frame}[getoffthestage]{}     \end{frame}      To implement this, I have included the following latex code in my beamer style file `beamerthemeZion.sty`.               \newif\ifbeamer@getoffthestage          \define@key{beamerframe}{getoffthestage}[true]{%       \beamer@plainframetrue\beamer@getoffthestagetrue%       \def\beamer@frametemplate{\beamer@frametemplate@plain}%       \usebeamertemplate*{getoffthestage}}          \beamer@getoffthestagefalse          \defbeamertemplate*{getoffthestage}{}{%     \noindent\begin{minipage}[b][\textheight][c]{\textwidth}%     \hspace*{\fill}%     \includegraphics[height=0.4\paperheight]{logographic}%     \hspace*{\fill}%     \end{minipage}}      I have two questions: First, why are the contents of the getoffthestage frame placed near the bottom of the slide? I am forced to use a minipage to vertically center the graphic. Second, why does a minipage that is `\textwidth` wide cause an unwanted page break? When I make the width `0.9\textwidth`, everything stays on one page. I am guessing that I am putting the `\usebeamertemplate*` command in the wrong place. Is there a better way to do what I want?


title: Aligning equation including multiline expressions

text: I have a derivation and have problems getting it to look nice. The derivation goes over several lines, so I want the `=` signs aligned. That is easy either using `align` or `eqnarray`. However, one of the lines is too long to fit in one line. I would like that line to look the way it would look in the `multline` environment, however, with the `=` aligned with the rest of the expression. This is what I have so far:               \begin{align*}         \chi_{2C}^-(\mathbf k, \mathbf r)=&u_0(\mathbf k, \mathbf r)+e^{i\mathbf k \mathbf \Delta}\sum_{n=1}^\infty u_i(\mathbf k, \mathbf r -\mathbf \Delta)+e^{-i\mathbf k \mathbf \Delta}\sum_{n=1}^\infty u_i(\mathbf k, \mathbf r +\mathbf \Delta)\\         =u_0&(\mathbf k, \mathbf r)+e^{i\mathbf k \mathbf \Delta}\left(\chi_{C}^-(\mathbf k, \mathbf r-\mathbf \Delta)-u_0(\mathbf k, \mathbf r-\mathbf \Delta)\right)\\         &+e^{-i\mathbf k \mathbf \Delta}\left(\chi_{C}^-(\mathbf k, \mathbf r+\mathbf \Delta)-u_0(\mathbf k, \mathbf r+\mathbf \Delta)\right)\\         =&-u_0(\mathbf k, \mathbf r)+e^{i\mathbf k \mathbf \Delta}\chi_{C}^-(\mathbf k, \mathbf r-\mathbf \Delta)+e^{-i\mathbf k \mathbf \Delta}\chi_{C}^-(\mathbf k, \mathbf r+\mathbf \Delta),     \end{align*}      I attached a picture of what I would like it to look like. Alternatively one could align the `+` of the second and third row. ![enter image description here](http://i.stack.imgur.com/lyK1e.png)


title: Editing pdfs with a pdf editor not through latex

text: Can people edit pdfs generated from LaTeX? I know adobe has a paid program that allows the editing of pdfs. I ask because I would think this wouldn't work. With a pdf generated from a Word, there is no code in the background that was need to make the document whereas some LaTeX documents aren't so simple in construction, behind the scenes. Also, if it can be edited in this manner, we it be able to match the fonts? What if they tried to edit an image that is floating? Since the image is based LaTeX's best placement, would this screw up the document?


title: Environment that counts words inside

text: How can I create the environment that could count words inside itself? More specifically, I want to write an enviroment called "assignment" such that the code               \begin{assignment}     Some words here.     \end{assignment}      will result in "Some words here." in the text and, say, "3 words" in a margin paragraph. I tried searching for that, but found only (external) tools to count words in the entire document, while I need to do this with LaTeX code and for a single environment (possibly repeated several times in a document).


title: How to change the formating of the title of a "Listing" from roman to arabic?

text: I recently stepped out of my comfort bounds and decided to add some Code snippets to my paper. I was able to get everything working fine and looking good, except the actual title. Everything else in my Document uses arabic, i.e. Figure 2.3, Table 4.5, etc... for some reason when I insert the Code (Using lstlisting), the published version becomes "Listing III.1: code title". I tried using the same setup in my pre-amble as the figures, tables, and equations:                   \renewcommand\lstlistingname{\arabic{chapter}.\arabic{lstnumber}}      However, that removes the "Listing" portion and instead gives me "3.1 III.1: code title". Obviously I am not wise enough with the \renewcommand? or is there another setting I should be changing? Here is the pre-amble I was trying to copy:               \newcommand{\updateCounters}{\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}%     \renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}%     \renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}%      Thanks!


title: Missing float OR page number when placing large tikz image on different size landscape page

text: I have a document with a large tikz image. To display this image using pdflatex, I've created macros to switch papersize, and I'm using the `pdflscape` package to rotate the pages when displayed in the pdf viewer. Using this technique, I'm able to display the figure as desired on a rotated larger-size page, but the following page is missing the page number in the footer (and without a manual `\clearpage`, text doesn't properly break to the next page, instead it continues through the footer and into the invisible abyss beyond). At the second page following the figure, the page number returns. The minimum working example below demonstrates this phenomenon:               \documentclass{article}     \usepackage{tikz}     \usepackage{pdflscape}          \usetikzlibrary{shapes}          % Macros for changing paper size     \newcommand{\startPaperSizeB}{%       \begingroup       \clearpage       \setlength{\pdfpagewidth}{11in}       \setlength{\pdfpageheight}{17in}       \setlength{\paperwidth}{\pdfpagewidth}       \setlength{\paperheight}{\pdfpageheight}       \setlength{\oddsidemargin}{0pt}       \setlength{\textwidth}{650pt}       \setlength{\topmargin}{0pt}       \setlength{\headheight}{0pt}       \setlength{\headsep}{0pt}       \setlength{\textheight}{1084pt}       }          \newcommand{\stopPaperSizeB}{\endgroup \clearpage}          \begin{document}          Some text on the first page.          \startPaperSizeB     \begin{landscape}          \begin{figure}       \centering         \begin{tikzpicture}[]         \node [draw, rectangle, minimum height=625pt, minimum width=1000pt] (1) {};       \end{tikzpicture}         \caption{Caption for the large size figure}     \end{figure}          \end{landscape}     \stopPaperSizeB          Missing page number on this page?          \clearpage          Now the page number is back!          \end{document}      I recently asked a very similar question, execpt I left the figure out of the MWE. This question was answered, but the solution doesn't work when inserting a `tikzpicture` on the larger landscape page - instead, there is no larger landscape page and no figure - they just disappear. I get a warning about an overfull box, but no figure. The MWE below demonstrates this:               \documentclass{article}     \usepackage{tikz}     \usepackage{pdflscape}          \usetikzlibrary{shapes}          % Macros for changing paper size     \newcommand{\startPaperSizeB}{%       \setlength{\pdfpagewidth}{11in}       \setlength{\pdfpageheight}{17in}       \setlength{\paperwidth}{\pdfpagewidth}       \setlength{\paperheight}{\pdfpageheight}       \setlength{\oddsidemargin}{0pt}       \setlength{\textwidth}{650pt}       \setlength{\topmargin}{0pt}       \setlength{\headheight}{0pt}       \setlength{\headsep}{0pt}       \setlength{\textheight}{1084pt}       }          \newcommand{\stopPaperSizeB}{}          \begin{document}          Some text on the first page.          \begin{landscape}     \startPaperSizeB          \begin{figure}       \centering         \begin{tikzpicture}[]         \node [draw, rectangle, minimum height=625pt, minimum width=1000pt] (1) {};       \end{tikzpicture}         \caption{Caption for the large size figure}     \end{figure}          \stopPaperSizeB     \end{landscape}          The page number is here, but the figure is not.          \end{document}      If the size of the rectangle is reduced enough (to 525 by 550, for example), then the figure appears on a page at the end of the document, although the page is a normal size and the figure runs off the page. This led me to try the `[H]` option from the `float` package, which seems to be getting me closer, but I'm still not there. Any ideas?


title: algorithm2e-Drawing vertical dashed rules

text: In the following code, I would like to produce dashes lines instead of normal ones. The three `HERE` indicate where the code draws the lines.               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage{xcolor}     \usepackage[ruled]{algorithm2e}          \definecolor{algoColorKeyword}{named}{blue}     \definecolor{algoColorComment}{named}{olive}          \renewcommand{\KwSty}[1]{{\color{algoColorKeyword}\textbf{#1}}}     \renewcommand{\CommentSty}[1]{{\color{algoColorComment}\texttt{#1}}}          \makeatletter     % The following lines come from algorithm2e.sty     %     % Block with a vertical line end by a little horizontal line             \renewcommand{\algocf@Vline}[1]{%                     \strut\par\nointerlineskip%t                     \algocf@push{\skiprule}%                     \hbox{%                             {\color{algoColorKeyword}\vrule}% HERE !                             \vtop{%                                     \algocf@push{\skiptext}%                                     \vtop{\algocf@addskiptotal\advance\hsize by -\skiplength #1}%                                     {\color{algoColorKeyword}\Hlne}% HERE !                             }%                     }\vskip\skiphlne%                     \algocf@pop{\skiprule}%                     \nointerlineskip%             }          % The following lines come from algorithm2e.sty     %     % Block with a vertical line             \renewcommand{\algocf@Vsline}[1]{%                     \strut\par\nointerlineskip%                     \algocf@push{\skiprule}%                     \hbox{%                             {\color{algoColorKeyword}\vrule}% HERE !                             \vtop{\algocf@push{\skiptext}%                             \vtop{\algocf@addskiptotal\advance\hsize by -\skiplength #1}}%                     }%                     \algocf@pop{\skiprule}%             }     \makeatother          \begin{document}          \begin{algorithm}[H]             \tcp{Un exemple d'algorithme haut en couleur...}             \BlankLine             \KwData{Données au départ}             \KwResult{Ce que fait cet algorithme}             \BlankLine             \While{La boucle doit continuer}{                     \eIf{Condition 1}{                             \tcp{Un tout premier test...}                             Action 1 \\                             Action 2                     }{                             \For{$i = 2$ \KwTo $l$}{                                     Calcul $i$ \\                                     Action $i$                             }                             \tcp{                                     Un autre test \\                                     plus compliqué...                             }                             \uIf{Condition 2}{                                     Action $l + 1$ \\                                     Action $l + 2$                             }                             \ElseIf{Condition 3}{                                     Action $l + 3$ \\                                     Action $l + 4$                             }                     }             }                  \caption{Un exemple d'algorithme}     \end{algorithm}          \end{document}


title: how to use memoir \ifoddpage

text: Why does `\ifoddpage` seem to always return false in the following example? This is related to question 6143 on this same forum. I'm using XeLaTeX to produce a pdf file (i.e., `xelatex test.tex`)               \documentclass[11pt,final,openright]{memoir}     % for Blurb, set this to the actual desired size as indicated by the     % size calculator on their web site     % See the memoir class documentation for an explanation of all the page     % layout parameters.     \setstocksize{594pt}{693pt}     \settrimmedsize{576pt}{684pt}{*}     \settrims{9pt}{9pt}     \setlrmarginsandblock{81pt}{54pt}{*} % calculates \textwidth     \setulmarginsandblock{72pt}{36pt}{*} % calculates \textheight     \setheadfoot{0pt}{18pt}     \setheaderspaces{0pt}{*}{*}     \raggedright     % comment to force even justification     \setlength{\parindent}{0in}   % paragraph indentations     \setlength{\parskip}{1em}   % space between paragraph     \checkandfixthelayout    % Set all the layout values     \usepackage{ifthen}     \newcounter{mycount}     \begin{document}     \whiledo{\themycount<130}{%       \ifoddpage         {Odd\\}%       \else         {Even\\}%       \fi       \stepcounter{mycount}%     }     \end{document}


title: Problems with fontspec and titlesec packages

text: I've been trying to create a CV template by following the tutorial from here. Here's the latex code I used               \documentclass[a4paper,10pt]{article}          %A Few Useful Packages     \usepackage{marvosym}     \usepackage{fontspec}   %load fonts     \usepackage{url,parskip}   %formatting     \usepackage{xunicode,xltxtra}  %other packages for XeTeX     \usepackage{titlesec}          %Graphics - Colors     \RequirePackage{color,graphicx}     \usepackage[usenames,dvipsnames]{xcolor}     %better formatting of the A4 page     \usepackage[big]{layaureo}     %An alternative to Layaureo can be usepackage{fullpage}          \usepackage{supertabular}   %for Grades     \usepackage{titlesec}   %custom section          %Setup hyperref package, and colours for links     \usepackage{hyperref}     \definecolor{linkcolour}{rgb}{0,0.2,0.6}     \hypersetup{colorlinks,breaklinks, urlcolor=linkcolour, linkcolor=linkcolour}          \defaultfontfeatures{Mapping=tex-text}     \setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}          \titleformat{section}{Largescshaperaggedright}{}{0em}{}[\titlerule]     \titlespacing{section}{0pt}{3pt}{3pt}      I compiled it using XeTeX extension (xelatex resume.tex). I got the following error message in the terminal.               kpathsea: Running mktextfm Fontin     /usr/share/texmf/web2c/mktexnam: Could not map source abbreviation F for Fontin.     /usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf-texlive/fonts/map/fontname/special.map?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Fontin     This is METAFONT, Version 2.718281 (TeX Live 2009/Debian)               kpathsea: Running mktexmf Fontin     ! I can't find file `Fontin'.     <*> ...:=ljfour; mag:=1; nonstopmode; input Fontin          Please type another input file name     ! Emergency stop.     <*> ...:=ljfour; mag:=1; nonstopmode; input Fontin          Transcript written on mfput.log.     grep: Fontin.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Fontin' failed to make Fontin.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font \zf@basefont=Fontin at 10.0pt not loadable: Metric (TFM) file or install     ed font not found.     \zf@fontspec ...ntname \zf@suffix " at \f@size pt                                                        \unless \ifzf@icu \zf@set@...     l.26 ...[SmallCapsFont = Fontin SmallCaps]{Fontin}      I suppose it's because the font 'Fontin' is missing. I downloaded 'Fontin' and tried to add it as external font by               \fontspec     [ Path = /home/primal/fonts/ ,     UprightFont = *-regular ,     BoldFont = *-bold ,     SmallCapsFont = *-SmallCaps ]     {Fontin}      But it didn't work out as well. Any help on this would be much appreciated. Also when I tried that line which was causing the error, I got an error message on next line specifying formatting for sections.               ! Package xkeyval Error: `section' undefined in families `titlesec'.          See the xkeyval package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.28 ...section}{Largescshaperaggedright}{}{0em}{}                                                       [\titlerule]


title: How does one invoke the MiKTeX port of "mft"?

text: I can see that MiKTeX 2.9 (of which I use the "Portable" version) has an executable for "`mft`", which (if run with no arguments) will crash and print:                Usage: mft inputfile changefile stylefile outputfile. (l.0)      I cant't find any other documentation, besides a brief one-line summary of the purpose of mft. This is the most I can get it to do:                E:\home\tex\metafont>touch null.ch           E:\home\tex\metafont>mft modes.mf null.ch \Tools\miktex-2.9\mft\plain.mft modes.tex      This is MFT, Version 2.0 (MiKTeX 2.9)      mft: Read operation failed.      Judging by the output of SysInternals' procmon tool, it looks like it must be objecting to "`null.ch`" being empty, but I haven't the foggiest idea why it demands such a file :-(. Any clues??


title: How to make a LTXexample-like environment by using the package listings.sty only?

text: For some reason, I am forced to create a LTXexample-like environment. The following is my effort, but it cannot work. :-) I don't know how to fix the problem. Thank you in advance.               \documentclass[dvips,dvipsnames]{article}     \usepackage{xcolor}          \usepackage{listings}     \lstset{%         literate=   {ï}{}0                     {»}{}0                     {¿}{}0,         breaklines=true,         breakindent=0pt,         basicstyle=\ttfamily\tiny,         keywordstyle=\color{blue}\sffamily\bfseries,             commentstyle=\color{OliveGreen}\itshape,                                             stringstyle=\rmfamily,         showstringspaces=false,         backgroundcolor=\color{Yellow!30},         language={PSTricks}%     }          \usepackage{pstricks}               \newcommand{\temporary}{}          \newenvironment{myLTXexample}%     {%         \renewcommand{\temporary}%         \bgroup\ignorespaces%     }     {%         \egroup%         \begin{minipage}{0.4\linewidth}%                 \begin{lstlisting}                         \temporary%                 \end{lstlisting}          \end{minipage}         %         \hspace{5mm}          %         \begin{minipage}{0.4\linewidth}                 \temporary         \end{minipage}     }          \begin{document}          \begin{myLTXexample}     testing.... \LaTeX !     \end{myLTXexample}          \end{document}      EDIT 1: This example is the simplified version of my real scenario. :-)


title: How to type "<<test>>" in ttfamily?

text: I'm trying to produce `<<test>>` text in `\ttfamily`, but it looks like:               «test»      Which is not what I'm looking for. When I'm trying `$<<$test$>>$` the result is not correct as well because the symbols are not in `\ttfamily`. This is full example:               \documentclass{article}     \usepackage[T1]{fontenc}     \begin{document}     \texttt{<<test>>}     \end{document}


title: I want to start learning how to use \newcommand \newenvironment and \def any suggestions where to start?

text: I have been using LaTeX for a long time now, and I find myself often going to this website to solve my problems. This often includes copy pasting codes which include `\newcommand`, `\newenvironment` and `\def`. I think it is time I start to learn how to use them so I can solve my problems myself! It is always better if you actually know what is going on inside your code. I am wondering if there is any turtorial or book out there that handles how to use those commands. Or is the best way to learn to just mess with a random file? Thanks in advance! (Also this is my first time I post here after using this website for so long, I really appreciate everyone who posts and tries to help other people here!)


title: biblatex, addcategory

text: I have asked the following in several boards, but without any success. Please consider biblatex commands to define Categories and assign a Category to a .bib entry:               \DeclareBibliographyCategory{AAA}     \addtocategory{AAA}{aaa}      My question is: is there a way to retrieve a category, given an entry? i.e., something like `\CatOfBook{aaa}` \--> AAA ? I do not know anything about LaTeX programming, but I suspect you need to add a new functionality somewhere into the biblatex.sty file. I appreciate very much any hint, or just an explanation on how difficult it could be. The broader reason why I think I need this is the following. I use to section my bibliography thanks to the category commands above and:               \printbibliography[heading=AAA,category=aaa]      and the result is something like               section AAA     Aut90 ----     Aut93b ----          section BBB     Aut92---     Aut93a --      (the same author has books of many different categories) I would like to have a kind of `\cite` command such that it outputs something like: `A-Aut90, B-Aut93a, A-Aut93b`. I hope I made clear my issue


title: Lengths and for-loops

text: It seems that lengths are not updated in for loops. Compiling the code below:               \documentclass{article}     \usepackage{tikz}     \newlength{\test}     \newcommand{\inc}{\addtolength{\test}{1cm}}     \newcommand{\incs}{\foreach \x in {1,2,3} {\addtolength{\test}{1cm}}}          \begin{document}          Test: .\hspace{\test}.          \inc          Test: .\hspace{\test}.          \setlength{\test}{0cm}          \incs          Test: .\hspace{\test}.          \end{document}      We expect to see > Test: ..   >  Test: .--.   >  Test: .------.   > But the last line shows > Test: .. It is a bit annoying because I wanted to use a floating point number to be remembered in a TikZ picture, each time I call a function in a for loop. * * * **EDIT** I want to write code for a piecewise function. Here is what I have               \documentclass[12pt]{article}     \usepackage{tikz}          \newlength{\currX}     \setlength{\currX}{0mm}     \newlength{\currY}     \setlength{\currY}{0mm}     \newcommand{\drawbar}[2]{       \draw (\currX,\currY) -- (\currX,\currY+{#2}) -- (\currX+{#1},\currY+{#2});       \global\addtolength{\currX}{#1}       \global\addtolength{\currY}{#2}      }     \newcommand{\drawbars}[1]{       \foreach \x/\y in {#1}{        \drawbar{\x}{\y}        }       }          \begin{document}          \begin{figure}       \begin{tikzpicture}         \drawbar{2mm}{4mm}         \drawbar{20mm}{40mm}       \end{tikzpicture}     \end{figure}          \begin{figure}       \begin{tikzpicture}         \drawbars{2mm/4mm, 20mm/40mm}       \end{tikzpicture}     \end{figure}          \end{document}      I get a compile error:               You can't use a prefix with `\begingroup'.     <to be read again>           \begingroup           l.23     \drawbar{2mm}{4mm}      * * * **EDIT2** The second question turns out to be the same as TikZ, foreach and sum Prefixing with global as suggested does not compile in my more specific example above, the solution above does well.


title: Automatically add quotes

text: I would like to create a new environment which will behave similar to `quote`, but with quotes added. I tried something like this:               \newenvironment{newquote}{\itshape\color{blue!20!black!30!green}\begin{quote}“}{”\end{quote}}      But that produces space beetween quotes and text which I don't want. ![Unwanted space beetween quotes and text](http://i.stack.imgur.com/0SQNl.png)


title: pgfkey containing a foreach statement with a variable number of values

text: I would like to use pgfkeys in a macro. One key contains a foreach statement which handles a variable number of values. I have some problems concerning the right order of the output. Here a simplified example:               \documentclass[article]{memoir}     \usepackage[latin]{babel}     \usepackage{algpseudocode}     \usepackage{pgfkeys}          \pgfkeys{%     /test/.is family,     /test/.cd,         key a/.store in = \keyA,         key a print/.code = \texttt{\keyA},         key b/.code = {\foreach \x in {#1}{\textbf{\x}--}}     }%          \newcommand\mymacro[1]{\pgfkeys{/test, #1, key a print}}          \begin{document}     \mymacro{key a = valueKeyA, key b = {valueKeyB1, valueKeyB2, valueKeyB3}}     \end{document}      The order of the output is: valueKeyB1–valueKeyB2–valueKeyB3–valueKeyA How can I achieve that valueKeyA is typeset first? If I put #1 at the end of the key list in my example code I get an error message. If I place it at the end of the key list in my actual code the values of the first keys are missing. I guess it has either something to do with the order in which the values are stored and the keys are executed or my use of #1 is mixed up. I am using pgfkeys for a short time and would be glad if someone could give me a hint.


title: pgf's \foreach macro

text: Please is there a way of turning the group scoping of `\foreach` off? The following problem illustrates my difficulty. Without global assignment the aim is not achieved, but global assignments might take things too far. Andrew Stacey: This is a genuine question.               \documentclass{article}     \usepackage{pgffor}     \begin{document}          \newcount\nra\newcount\nrb     \def\print{%       \par{\tt\tabskip=20pt         \halign to\hsize{##&##&##\cr           \number\nra-\number\nrb:& \xa/\xb & \ya/\yb\cr       }}%     }          \begingroup     \nrb=10     Value of `{\tt\string\nrb}' within the current group is \number\nrb.     \par\medskip     \xdef\savednrb{\the\nrb}     \foreach \xa\xb in {a1/a2,b1/b2,c1/c2,d1/d2}{%       \global\advance\nra by1       \nrb=0       \foreach \ya\yb in {s1/s2,t1/t2,u1/u2,v1/v2}{%         \global\advance\nrb by1         \ifnum\nrb>1 \breakforeach\fi         \print       }%     }     \endgroup          \par\medskip     Value of `{\tt\string\nrb}' outside the latest group is \number\nrb, not \number\savednrb.          \end{document}


title: Different colours for each argument and value in listings

text: This recent question (Print blue brackets in one language and black in another) made me come up with (up to) two more questions regarding the `listings` package:   1. Is there an option similar to `opstyle` that only affects **one** argument (using `"`, `,` or `;` as first delimiter and `=` as a second) and **one** value belonging to that argument? (using `=` as first delimiter and `"`, `,` or `;` as second)?   2. Is it possible to adjust the used colour in the middle of the `listings` environment, without it showing up as comment or line, etc.? These solutions all define colours outside the actual environment. Neither the `listings` manual, nor the WikiBooks article give conclusive answers (and also fail mentioning macros including `\lst@thestyle` I might add), so I've looked at `listings.sty`, unsurprisingly to no avail, partially because the `.sty`-file has absolutely no remarks on any line for explanation. For your convenience, I've included the MWE of the `opstyle` example and picture from the thread earlier mentioned. In my case I'd like to for instance colour the part of `string: ()` orange, but the `{}><;&` part red.               \documentclass{article}          \usepackage{xcolor}     \usepackage{listings}          \newcommand\opstyle{\color{red}} % <--- customise operator style here          \makeatletter          \lstset     {%       language=C++,       alsoletter=0123456789,% to prevent \opstyle from being applied to digits     }          % Hook into listings     \lst@AddToHook{OutputOther}{\ProcessOther@silmeth}          % helper macro     \newcommand\ProcessOther@silmeth     {%       \ifnum\lst@mode=\lst@Pmode%     % If we're in `Processing' mode...         \def\lst@thestyle{\opstyle}%  % ... redefine the style locally       \fi%     }          \makeatother          \begin{document}     \begin{lstlisting}[]     int i = 0;     if(i > 1) && (1/2 < 2) {              // one-line comment ()={}><;&              printf("string: ()={}><;&");              /*           block comment ()={}><&;         */     }     \end{lstlisting}     \end{document}      ![opstyle example](http://i.stack.imgur.com/OxbtG.png)


title: Setting target directory for FeynMF's intermediate files?

text: Related to "How to use kile with feynmf or feynmp?", is it possible to tell the `feynmf` package where to place its intermediate files? I sometimes have a lot of Feynman diagrams in my LaTeX documents, which are compiled using the solution provided in the previous question, but the files produced in the process clutter the directory with the tex source files.